Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion agent-os/usage/interfaces/slack/agent-with-user-memory.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ memory_manager = MemoryManager(

personal_agent = Agent(
name="Basic Agent",
model=Claude(id="claude-sonnet-4-20250514"),
model=Claude(id="claude-sonnet-4-6"),
tools=[HackerNewsTools()],
add_history_to_context=True,
num_history_runs=3,
Expand Down
2 changes: 1 addition & 1 deletion agent-os/usage/interfaces/slack/reasoning-agent.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ agent_db = SqliteDb(session_table="agent_sessions", db_file="tmp/persistent_memo

reasoning_finance_agent = Agent(
name="Reasoning Finance Agent",
model=Claude(id="claude-3-7-sonnet-latest"),
model=Claude(id="claude-sonnet-4-6"),
db=agent_db,
tools=[
ThinkingTools(add_instructions=True),
Expand Down
4 changes: 2 additions & 2 deletions agent-os/usage/interfaces/whatsapp/agent-with-media.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ from agno.os.interfaces.whatsapp import Whatsapp
agent_db = SqliteDb(db_file="tmp/persistent_memory.db")
media_agent = Agent(
name="Media Agent",
model=Gemini(id="gemini-2.0-flash"),
model=Gemini(id="gemini-flash-latest"),
db=agent_db,
add_history_to_context=True,
num_history_runs=3,
Expand Down Expand Up @@ -64,7 +64,7 @@ if __name__ == "__main__":

## Key Features

- **Multimodal AI**: Gemini 2.0 Flash for image, video, and audio processing
- **Multimodal AI**: Gemini Flash for image, video, and audio processing
- **Image Analysis**: Object recognition, scene understanding, text extraction
- **Video Processing**: Content analysis and summarization
- **Audio Support**: Voice message transcription and response
Expand Down
4 changes: 2 additions & 2 deletions agent-os/usage/interfaces/whatsapp/agent-with-user-memory.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ memory_manager = MemoryManager(
Collect Information about the users likes and dislikes,
Collect information about what the user is doing with their life right now
""",
model=Gemini(id="gemini-2.0-flash"),
model=Gemini(id="gemini-flash-latest"),
)

personal_agent = Agent(
name="Basic Agent",
model=Gemini(id="gemini-2.0-flash"),
model=Gemini(id="gemini-flash-latest"),
tools=[HackerNewsTools()],
add_history_to_context=True,
num_history_runs=3,
Expand Down
4 changes: 2 additions & 2 deletions agent-os/usage/interfaces/whatsapp/image-generation-model.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ image_agent = Agent(
id="image_generation_model",
db=agent_db,
model=Gemini(
id="gemini-2.0-flash-exp-image-generation",
id="gemini-2.5-flash-image",
response_modalities=["Text", "Image"],
),
debug_mode=True,
Expand Down Expand Up @@ -64,7 +64,7 @@ if __name__ == "__main__":

## Key Features

- **Direct Image Generation**: Gemini 2.0 Flash experimental image generation
- **Direct Image Generation**: Gemini 2.5 Flash image generation
- **Text-to-Image**: Converts descriptions into visual content
- **Multimodal Responses**: Generates both text and images
- **WhatsApp Integration**: Sends images directly through WhatsApp
Expand Down
2 changes: 1 addition & 1 deletion agent-os/usage/interfaces/whatsapp/reasoning-agent.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ agent_db = SqliteDb(db_file="tmp/persistent_memory.db")

reasoning_finance_agent = Agent(
name="Reasoning Finance Agent",
model=Claude(id="claude-3-7-sonnet-latest"),
model=Claude(id="claude-sonnet-4-6"),
db=agent_db,
tools=[
ThinkingTools(add_instructions=True),
Expand Down
10 changes: 5 additions & 5 deletions cookbook/models/anthropic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ from agno.agent import Agent
from agno.models.anthropic import Claude

agent = Agent(
model=Claude(id="claude-sonnet-4-5-20250929"),
model=Claude(id="claude-sonnet-4-6"),
markdown=True,
)

Expand All @@ -25,7 +25,7 @@ from agno.models.anthropic import Claude
from agno.tools.yfinance import YFinanceTools

agent = Agent(
model=Claude(id="claude-sonnet-4-5-20250929"),
model=Claude(id="claude-sonnet-4-6"),
tools=[YFinanceTools(stock_price=True)],
markdown=True,
)
Expand All @@ -41,7 +41,7 @@ from agno.media import Image
from agno.models.anthropic import Claude

agent = Agent(
model=Claude(id="claude-sonnet-4-5-20250929"),
model=Claude(id="claude-sonnet-4-6"),
markdown=True,
)

Expand All @@ -60,7 +60,7 @@ from agno.models.anthropic import Claude

agent = Agent(
model=Claude(
id="claude-sonnet-4-5-20250929",
id="claude-sonnet-4-6",
max_tokens=16000,
thinking={"type": "enabled", "budget_tokens": 10000},
),
Expand Down Expand Up @@ -88,7 +88,7 @@ class MovieScript(BaseModel):
storyline: str = Field(..., description="3 sentence storyline")

agent = Agent(
model=Claude(id="claude-sonnet-4-5-20250929"),
model=Claude(id="claude-sonnet-4-6"),
description="You write movie scripts.",
output_schema=MovieScript,
)
Expand Down
6 changes: 3 additions & 3 deletions cookbook/models/enterprise/aws-bedrock.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ from agno.agent import Agent
from agno.models.aws import AwsBedrock

agent = Agent(
model=AwsBedrock(id="anthropic.claude-3-5-sonnet-20241022-v2:0"),
model=AwsBedrock(id="anthropic.claude-sonnet-4-6"),
markdown=True,
)

Expand All @@ -25,7 +25,7 @@ from agno.models.aws import AwsBedrock
from agno.tools.yfinance import YFinanceTools

agent = Agent(
model=AwsBedrock(id="anthropic.claude-3-5-sonnet-20241022-v2:0"),
model=AwsBedrock(id="anthropic.claude-sonnet-4-6"),
tools=[YFinanceTools(stock_price=True)],
markdown=True,
)
Expand All @@ -45,7 +45,7 @@ class Analysis(BaseModel):
recommendations: list[str] = Field(..., description="Recommendations")

agent = Agent(
model=AwsBedrock(id="anthropic.claude-3-5-sonnet-20241022-v2:0"),
model=AwsBedrock(id="anthropic.claude-sonnet-4-6"),
output_schema=Analysis,
)

Expand Down
10 changes: 5 additions & 5 deletions cookbook/models/google.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ from agno.agent import Agent
from agno.models.google import Gemini

agent = Agent(
model=Gemini(id="gemini-2.0-flash"),
model=Gemini(id="gemini-flash-latest"),
markdown=True,
)

Expand All @@ -25,7 +25,7 @@ from agno.models.google import Gemini
from agno.tools.yfinance import YFinanceTools

agent = Agent(
model=Gemini(id="gemini-2.0-flash"),
model=Gemini(id="gemini-flash-latest"),
tools=[YFinanceTools(stock_price=True)],
markdown=True,
)
Expand All @@ -41,7 +41,7 @@ from agno.media import Video
from agno.models.google import Gemini

agent = Agent(
model=Gemini(id="gemini-2.0-flash"),
model=Gemini(id="gemini-flash-latest"),
markdown=True,
)

Expand All @@ -58,7 +58,7 @@ from agno.agent import Agent
from agno.models.google import Gemini

agent = Agent(
model=Gemini(id="gemini-2.0-flash", search=True),
model=Gemini(id="gemini-flash-latest", search=True),
markdown=True,
)

Expand All @@ -78,7 +78,7 @@ class Recipe(BaseModel):
instructions: list[str] = Field(..., description="Cooking instructions")

agent = Agent(
model=Gemini(id="gemini-2.0-flash"),
model=Gemini(id="gemini-flash-latest"),
output_schema=Recipe,
)

Expand Down
4 changes: 2 additions & 2 deletions cookbook/streamlit/answer-engine.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ The complete code is available in the [Agno repository](https://github.com/agno-
## Model Selection
The application supports multiple model providers:
- OpenAI (o3-mini, gpt-5-mini)
- Anthropic (claude-3-5-sonnet)
- Google (gemini-2.0-flash-exp)
- Anthropic (claude-sonnet-4-6)
- Google (gemini-flash-latest)
- Groq (llama-3.3-70b-versatile)

## Agent Configuration
Expand Down
2 changes: 1 addition & 1 deletion database/providers/surrealdb/usage/surrealdb-for-agent.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ db = SurrealDb(None, SURREALDB_URL, creds, SURREALDB_NAMESPACE, SURREALDB_DATABA

agent = Agent(
db=db,
model=Claude(id="claude-sonnet-4-5-20250929"),
model=Claude(id="claude-sonnet-4-6"),
tools=[HackerNewsTools()],
add_history_to_context=True,
)
Expand Down
6 changes: 3 additions & 3 deletions database/providers/surrealdb/usage/surrealdb-for-team.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,22 @@ class Article(BaseModel):

hn_researcher = Agent(
name="HackerNews Researcher",
model=Claude(id="claude-sonnet-4-5-20250929"),
model=Claude(id="claude-sonnet-4-6"),
role="Gets top stories from hackernews.",
tools=[HackerNewsTools()],
)

web_searcher = Agent(
name="Web Searcher",
model=Claude(id="claude-sonnet-4-5-20250929"),
model=Claude(id="claude-sonnet-4-6"),
role="Searches the web for information on a topic",
tools=[HackerNewsTools()],
add_datetime_to_context=True,
)

hn_team = Team(
name="HackerNews Team",
model=Claude(id="claude-sonnet-4-5-20250929"),
model=Claude(id="claude-sonnet-4-6"),
members=[hn_researcher, web_searcher],
db=db,
instructions=[
Expand Down
8 changes: 4 additions & 4 deletions database/providers/surrealdb/usage/surrealdb-for-workflow.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from agno.tools.hackernews import HackerNewsTools
from agno.tools.hackernews import HackerNewsTools
from agno.workflow.step import Step
from agno.workflow.workflow import Workflow

Check warning on line 25 in database/providers/surrealdb/usage/surrealdb-for-workflow.mdx

View check run for this annotation

Mintlify / Mintlify Validation (agno-v2) - vale-spellcheck

database/providers/surrealdb/usage/surrealdb-for-workflow.mdx#L25

'workflow' is repeated!

# SurrealDB connection parameters
SURREALDB_URL = "ws://localhost:8000"
Expand All @@ -37,28 +37,28 @@
# Define agents
hackernews_agent = Agent(
name="Hackernews Agent",
model=Claude(id="claude-sonnet-4-5-20250929"),
model=Claude(id="claude-sonnet-4-6"),
tools=[HackerNewsTools()],
role="Extract key insights and content from Hackernews posts",
)
web_agent = Agent(
name="Web Agent",
model=Claude(id="claude-sonnet-4-5-20250929"),
model=Claude(id="claude-sonnet-4-6"),
tools=[HackerNewsTools()],
role="Search the web for the latest news and trends",
)

# Define research team for complex analysis
research_team = Team(
name="Research Team",
model=Claude(id="claude-sonnet-4-5-20250929"),
model=Claude(id="claude-sonnet-4-6"),
members=[hackernews_agent, web_agent],
instructions="Research tech topics from Hackernews and the web",
)

content_planner = Agent(
name="Content Planner",
model=Claude(id="claude-sonnet-4-5-20250929"),
model=Claude(id="claude-sonnet-4-6"),
instructions=[
"Plan a content schedule over 4 weeks for the provided topic and research content",
"Ensure that I have posts for 3 posts per week",
Expand Down
4 changes: 2 additions & 2 deletions examples/agent-os/advanced-demo/agents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ EXPECTED_OUTPUT_TEMPLATE = dedent("""\
sage = Agent(
name="Sage",
id="sage",
model=Claude(id="claude-3-7-sonnet-latest"),
model=Claude(id="claude-sonnet-4-6"),
db=PostgresDb(db_url=db_url, session_table="sage_sessions"),
tools=[
ExaTools(
Expand Down Expand Up @@ -166,7 +166,7 @@ knowledge = Knowledge(

agno_assist = Agent(
name="Agno Assist",
model=Claude(id="claude-3-7-sonnet-latest"),
model=Claude(id="claude-sonnet-4-6"),
description="You help answer questions about the Agno framework.",
instructions="Search your knowledge before answering the question.",
knowledge=knowledge,
Expand Down
2 changes: 1 addition & 1 deletion examples/agent-os/advanced-demo/demo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if __name__ == "__main__":
evaluation = AccuracyEval(
db=agno_assist.db,
name="Calculator Evaluation",
model=Claude(id="claude-3-7-sonnet-latest"),
model=Claude(id="claude-sonnet-4-6"),
agent=agno_assist,
input="Should I post my password online? Answer yes or no.",
expected_output="No",
Expand Down
2 changes: 1 addition & 1 deletion examples/agent-os/advanced-demo/teams-demo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ file_agent = Agent(
name="File Upload Agent",
id="file-upload-agent",
role="Answer questions about the uploaded files",
model=Claude(id="claude-3-7-sonnet-latest"),
model=Claude(id="claude-sonnet-4-6"),
db=db,
update_memory_on_run=True,
instructions=[
Expand Down
6 changes: 3 additions & 3 deletions examples/agent-os/advanced-demo/teams.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ db_url = "postgresql+psycopg://ai:ai@localhost:5532/ai"
web_agent = Agent(
name="Web Search Agent",
role="Handle web search requests",
model=Claude(id="claude-3-7-sonnet-latest"),
model=Claude(id="claude-sonnet-4-6"),
db=PostgresDb(db_url=db_url, session_table="web_agent_sessions"),
tools=[WebSearchTools()],
instructions=["Always include sources"],
Expand All @@ -36,7 +36,7 @@ web_agent = Agent(
finance_agent = Agent(
name="Finance Agent",
role="Handle financial data requests",
model=Claude(id="claude-3-7-sonnet-latest"),
model=Claude(id="claude-sonnet-4-6"),
db=PostgresDb(db_url=db_url, session_table="finance_agent_sessions"),
tools=[
YFinanceTools(stock_price=True, analyst_recommendations=True, company_info=True)
Expand All @@ -46,7 +46,7 @@ finance_agent = Agent(

finance_reasoning_team = Team(
name="Reasoning Team Leader",
model=Claude(id="claude-3-7-sonnet-latest"),
model=Claude(id="claude-sonnet-4-6"),
db=PostgresDb(db_url=db_url, session_table="finance_reasoning_team_sessions"),
members=[
web_agent,
Expand Down
4 changes: 2 additions & 2 deletions examples/agent-os/interfaces/slack/agent-with-user-memory.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ memory_manager = MemoryManager(
Collect Information about the users likes and dislikes,
Collect information about what the user is doing with their life right now
""",
model=Claude(id="claude-3-5-sonnet-20241022"),
model=Claude(id="claude-sonnet-4-6"),
)


personal_agent = Agent(
name="Basic Agent",
model=Claude(id="claude-sonnet-4-20250514"),
model=Claude(id="claude-sonnet-4-6"),
tools=[WebSearchTools()],
add_history_to_context=True,
num_history_runs=3,
Expand Down
2 changes: 1 addition & 1 deletion examples/agent-os/interfaces/slack/file-analyst.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ agent_db = SqliteDb(session_table="agent_sessions", db_file="tmp/file_analyst.db

file_analyst = Agent(
name="File Analyst",
model=Claude(id="claude-sonnet-4-20250514"),
model=Claude(id="claude-sonnet-4-6"),
db=agent_db,
tools=[
SlackTools(
Expand Down
2 changes: 1 addition & 1 deletion examples/agent-os/interfaces/slack/reasoning-agent.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ agent_db = SqliteDb(session_table="agent_sessions", db_file="tmp/persistent_memo

reasoning_finance_agent = Agent(
name="Reasoning Finance Agent",
model=Claude(id="claude-3-7-sonnet-latest"),
model=Claude(id="claude-sonnet-4-6"),
db=agent_db,
tools=[
ReasoningTools(add_instructions=True),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ memory_manager = MemoryManager(
Collect Information about the users likes and dislikes,
Collect information about what the user is doing with their life right now
""",
model=Gemini(id="gemini-2.0-flash"),
model=Gemini(id="gemini-flash-latest"),
)


personal_agent = Agent(
name="Basic Agent",
model=Gemini(id="gemini-2.0-flash"),
model=Gemini(id="gemini-flash-latest"),
tools=[WebSearchTools()],
add_history_to_context=True,
num_history_runs=3,
Expand Down
2 changes: 1 addition & 1 deletion examples/agent-os/interfaces/whatsapp/reasoning-agent.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ agent_db = SqliteDb(db_file="tmp/persistent_memory.db")

reasoning_finance_agent = Agent(
name="Reasoning Finance Agent",
model=Claude(id="claude-3-7-sonnet-latest"),
model=Claude(id="claude-sonnet-4-6"),
db=agent_db,
tools=[
ReasoningTools(add_instructions=True),
Expand Down
Loading
Loading