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

stock_analysis error about sec_tool #205

Open
babduck0 opened this issue Dec 13, 2024 · 0 comments
Open

stock_analysis error about sec_tool #205

babduck0 opened this issue Dec 13, 2024 · 0 comments

Comments

@babduck0
Copy link

babduck0 commented Dec 13, 2024

When I run main.py in the stock analysis, I get the following message. It seems to be related to sec_tool, but what is the problem?

Agent: The Best Financial Analyst

Task: Conduct a thorough analysis of AVGO's stock financial health and market performance. This includes examining key

financial metrics such as P/E ratio, EPS growth, revenue trends, and debt-to-equity ratio. Also, analyze the stock's performance in comparison to its industry peers and overall market trends.

I encountered an error while trying to use the tool. This was the error: APIStatusError.init() missing 2 required keyword-only arguments: 'response' and 'body'.
Tool Search in the specified 10-K form accepts these inputs: Tool Name: Search in the specified 10-K form
Tool Arguments: {'search_query': {'description': 'Mandatory query you would like to search from the 10-K report', 'type':
'str'}, 'stock_name': {'description': 'Mandatory valid stock name you would like to search', 'type': 'str'}}
Tool Description: A tool that can be used to semantic search a query from a 10-K form for a specified company.

Agent: The Best Financial Analyst

Using tool: Search in the specified 10-K form

Tool Input:

"{"search_query": "financial overview revenue net income", "stock_name": "AVGO"}"

Tool Output:

I encountered an error while trying to use the tool. This was the error: APIStatusError.init() missing 2 required keyword-only arguments: 'response' and 'body'.
Tool Search in the specified 10-K form accepts these inputs: Tool Name: Search in the specified 10-K form
Tool Arguments: {'search_query': {'description': 'Mandatory query you would like to search from the 10-K report', 'type':
'str'}, 'stock_name': {'description': 'Mandatory valid stock name you would like to search', 'type': 'str'}}
Tool Description: A tool that can be used to semantic search a query from a 10-K form for a specified company..
Moving on then. I MUST either use a tool (use one at time) OR give my best final answer not both at the same time. To Use
the following format:

I encountered an error while trying to use the tool. This was the error: APIStatusError.init() missing 2 required keyword-only arguments: 'response' and 'body'.
Tool Search in the specified 10-K form accepts these inputs: Tool Name: Search in the specified 10-K form
Tool Arguments: {'search_query': {'description': 'Mandatory query you would like to search from the 10-K report', 'type':
'str'}, 'stock_name': {'description': 'Mandatory valid stock name you would like to search', 'type': 'str'}}
Tool Description: A tool that can be used to semantic search a query from a 10-K form for a specified company.

(over and over)

(Skip the rest of the log report)

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