-
Notifications
You must be signed in to change notification settings - Fork 110
Description
Path: /examples/agents/finance-agent
error:
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Volumes/data/workspace/agno-test/main.py", line 65, in
finance_agent.print_response(
File "/Volumes/data/workspace/agno-test/.venv/lib/python3.12/site-packages/agno/agent/agent.py", line 6923, in print_response
for resp in self.run(
^^^^^^^^^
File "/Volumes/data/workspace/agno-test/.venv/lib/python3.12/site-packages/agno/agent/agent.py", line 886, in _run_stream
for event in self._handle_model_response_stream(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Volumes/data/workspace/agno-test/.venv/lib/python3.12/site-packages/agno/agent/agent.py", line 3021, in _handle_model_response_stream
for model_response_event in self.model.response_stream(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Volumes/data/workspace/agno-test/.venv/lib/python3.12/site-packages/agno/models/base.py", line 762, in response_stream
yield from self.process_response_stream(
File "/Volumes/data/workspace/agno-test/.venv/lib/python3.12/site-packages/agno/models/base.py", line 724, in process_response_stream
for response_delta in self.invoke_stream(
^^^^^^^^^^^^^^^^^^^
File "/Volumes/data/workspace/agno-test/.venv/lib/python3.12/site-packages/agno/models/openai/chat.py", line 486, in invoke_stream
raise ModelProviderError(
agno.exceptions.ModelProviderError: Failed to deserialize the JSON body into the target type: messages[0].role: unknown variant developer, expected one of system, user, assistant, tool at line 1 column 32