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

reasoning-fix-ag-2692 #2096

Merged
merged 1 commit into from
Feb 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions libs/agno/agno/agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,7 @@ def _run(
self.run_response.content = model_response_chunk.content
self.run_response.created_at = model_response_chunk.created_at
yield self.create_run_response(
content=model_response_chunk.content,
created_at=model_response_chunk.created_at
content=model_response_chunk.content, created_at=model_response_chunk.created_at
)
# If the model response is a tool_call_started, add the tool call to the run_response
elif model_response_chunk.event == ModelResponseEvent.tool_call_started.value:
Expand Down Expand Up @@ -2740,7 +2739,7 @@ def reason(self, run_messages: RunMessages) -> Iterator[RunResponse]:
reasoning_agent_messages=[ds_reasoning_message],
)
# Use Groq for reasoning
if reasoning_model.__class__.__name__ == "Groq" and "deepseek" in reasoning_model.id:
elif reasoning_model.__class__.__name__ == "Groq" and "deepseek" in reasoning_model.id:
from agno.reasoning.groq import get_groq_reasoning, get_groq_reasoning_agent

groq_reasoning_agent = self.reasoning_agent or get_groq_reasoning_agent(
Expand Down Expand Up @@ -2893,7 +2892,7 @@ async def areason(self, run_messages: RunMessages) -> Any:
reasoning_agent_messages=[ds_reasoning_message],
)
# Use Groq for reasoning
if reasoning_model.__class__.__name__ == "Groq" and "deepseek" in reasoning_model.id:
elif reasoning_model.__class__.__name__ == "Groq" and "deepseek" in reasoning_model.id:
from agno.reasoning.groq import aget_groq_reasoning, get_groq_reasoning_agent

groq_reasoning_agent = self.reasoning_agent or get_groq_reasoning_agent(
Expand Down