Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function description is required, none found. #59

Open
abdulhaque7 opened this issue Feb 25, 2025 · 0 comments
Open

Function description is required, none found. #59

abdulhaque7 opened this issue Feb 25, 2025 · 0 comments

Comments

@abdulhaque7
Copy link

When i try to run agent_anual_report.ipynb
when i Execute below cell
"
register_toolkits(
[
FMPUtils.get_sec_report, # Retrieve SEC report url and filing date
IPythonUtils.display_image, # Display image in IPython
TextUtils.check_text_length, # Check text length
ReportLabUtils.build_annual_report, # Build annual report in designed pdf format
ReportAnalysisUtils, # Expert Knowledge for Report Analysis
ReportChartUtils, # Expert Knowledge for Report Chart Plotting
],
expert,
user_proxy,
)
"
i got an error for value error
error is
"ValueError Traceback (most recent call last)
Cell In[6], line 1
----> 1 register_toolkits(
2 [
3 FMPUtils.get_sec_report, # Retrieve SEC report url and filing date
4 IPythonUtils.display_image, # Display image in IPython
5 TextUtils.check_text_length, # Check text length
6 ReportLabUtils.build_annual_report, # Build annual report in designed pdf format
7 ReportAnalysisUtils, # Expert Knowledge for Report Analysis
8 ReportChartUtils, # Expert Knowledge for Report Chart Plotting
9 ],
10 expert,
11 user_proxy,
12 )
FinRobot\finrobot\toolkits.py:33, in register_toolkits(config, caller, executor, **kwargs)
[30]FinRobot/finrobot/toolkits.py:30) for tool in config:
[32FinRobot/finrobot/toolkits.py:32) if isinstance(tool, type):
---> [33]FinRobot/finrobot/toolkits.py:33) register_tookits_from_cls(caller, executor, tool, **kwargs)
[34]FinRobot/finrobot/toolkits.py:34) continue
[36]FinRobot/finrobot/toolkits.py:36) tool_dict = {"function": tool} if callable(tool) else tool
FinRobot\finrobot\toolkits.py:106, in register_tookits_from_cls(caller, executor, cls, include_private)
98 else:
...
-> [2707]anaconda3/envs/finrobo/lib/site-packages/autogen/agentchat/conversable_agent.py:2707) raise ValueError("Function description is required, none found.")
[2709]anaconda3/envs/finrobo/lib/site-packages/autogen/agentchat/conversable_agent.py:2709) # get JSON schema for the function
[2710]anaconda3/envs/finrobo/lib/site-packages/autogen/agentchat/conversable_agent.py:2710) f = get_function_schema(func, name=func._name, description=func._description)

ValueError: Function description is required, none found."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant