Skip to content

Commit

Permalink
Merge branch 'main' into fix-gemini-structured-outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkbrnd authored Feb 12, 2025
2 parents db1c109 + d9e5e56 commit 170c0f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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 @@ -2744,7 +2743,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 @@ -2897,7 +2896,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
3 changes: 2 additions & 1 deletion libs/agno/agno/tools/firecrawl.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def __init__(
limit: int = 10,
scrape: bool = True,
crawl: bool = False,
api_url: Optional[str] = "https://api.firecrawl.dev",
):
super().__init__(name="firecrawl_tools")

Expand All @@ -28,7 +29,7 @@ def __init__(

self.formats: Optional[List[str]] = formats
self.limit: int = limit
self.app: FirecrawlApp = FirecrawlApp(api_key=self.api_key)
self.app: FirecrawlApp = FirecrawlApp(api_key=self.api_key, api_url=api_url)

# Start with scrape by default. But if crawl is set, then set scrape to False.
if crawl:
Expand Down

0 comments on commit 170c0f5

Please sign in to comment.