这是indexloc提供的服务,不要输入任何密码
Skip to content

xai_finance_agent -> "unexpected keyword argument 'stock_price'" #382

@weberpatr

Description

@weberpatr

Hey,

Just tried to run the xai_finance_agent and encountered following issues:

  • "No module named 'ddgs'" -> seems to be missing in the requirements.txt

  • Error on startup:

Traceback (most recent call last):
  File "/home/user/awesome-llm-apps/starter_ai_agents/xai_finance_agent/xai_finance_agent.py", line 12, in <module>
    tools=[DuckDuckGoTools(), YFinanceTools(stock_price=True, analyst_recommendations=True, stock_fundamentals=True)],
                              ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.pyenv/versions/3.14.0/lib/python3.14/site-packages/agno/tools/yfinance.py", line 35, in __init__
    super().__init__(name="yfinance_tools", tools=tools, **kwargs)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Toolkit.__init__() got an unexpected keyword argument 'stock_price'```

Running on Python 3.14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions