Skip to content

Commit 6ebfd57

Browse files
authored
Merge branch 'main' into passing-the-user-uploaded-images-in-the-toolkit-support-51
2 parents cbb351d + 62c3995 commit 6ebfd57

File tree

37 files changed

+1510
-1288
lines changed

37 files changed

+1510
-1288
lines changed

cookbook/models/azure/ai_foundry/async_tool_use.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515
tools=[DuckDuckGoTools()],
1616
show_tool_calls=True,
1717
markdown=True,
18+
debug_mode=True,
1819
)
1920

20-
response: RunResponse = asyncio.run(agent.arun("Whats happening in France?"))
21-
22-
print(response.content)
23-
print()
24-
print(response.metrics)
21+
asyncio.run(agent.aprint_response("Whats happening in France?"))

cookbook/models/azure/ai_foundry/structured_output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class MovieScript(BaseModel):
2626

2727

2828
agent = Agent(
29-
model=AzureAIFoundry(id="Phi-4"),
29+
model=AzureAIFoundry(id="gpt-4o"),
3030
description="You help people write movie scripts.",
3131
response_model=MovieScript,
3232
# debug_mode=True,
Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1-
from agno.agent import Agent, RunResponse # noqa
1+
from agno.agent import Agent
22
from agno.models.ollama import Ollama
3-
from agno.tools.duckduckgo import DuckDuckGoTools
3+
from agno.tools.yfinance import YFinanceTools
44

55
agent = Agent(
6-
model=Ollama(id="qwen2.5:latest "), tools=[DuckDuckGoTools()], markdown=True
6+
model=Ollama(id="qwen3:8b"),
7+
tools=[
8+
YFinanceTools(
9+
stock_price=True,
10+
analyst_recommendations=True,
11+
company_info=True,
12+
company_news=True,
13+
),
14+
],
15+
instructions="Use tables to display data.",
716
)
817

9-
# Print the response in the terminal
10-
agent.print_response("What is happening in France?")
18+
agent.print_response("Write a report on NVDA", stream=True, markdown=True)

cookbook/models/ollama/tool_use.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from agno.tools.duckduckgo import DuckDuckGoTools
66

77
agent = Agent(
8-
model=Ollama(id="llama3.1:8b"),
8+
model=Ollama(id="llama3.2:latest"),
99
tools=[DuckDuckGoTools()],
1010
show_tool_calls=True,
1111
markdown=True,

cookbook/models/ollama/tool_use_stream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from agno.tools.duckduckgo import DuckDuckGoTools
66

77
agent = Agent(
8-
model=Ollama(id="llama3.1:8b"),
8+
model=Ollama(id="llama3.2:latest"),
99
tools=[DuckDuckGoTools()],
1010
show_tool_calls=True,
1111
markdown=True,

cookbook/models/ollama_tools/tool_use.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from agno.tools.duckduckgo import DuckDuckGoTools
66

77
agent = Agent(
8-
model=OllamaTools(id="llama3.1:8b"),
8+
model=OllamaTools(id="llama3.2:latest"),
99
tools=[DuckDuckGoTools()],
1010
show_tool_calls=True,
1111
markdown=True,

0 commit comments

Comments
 (0)