Skip to content

100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.

phidata -> agno

Madhudf784d9c00ff
diff --git a/ai_agent_tutorials/ai_system_architect_r1/README.md b/ai_agent_tutorials/ai_system_architect_r1/README.md
index 4c3a3143..a78e925d 100644
--- a/ai_agent_tutorials/ai_system_architect_r1/README.md
+++ b/ai_agent_tutorials/ai_system_architect_r1/README.md
@@ -1,6 +1,6 @@
# 🤖 AI System Architect Advisor with R1
-A Streamlit application that provides expert software architecture analysis and recommendations using a dual-model approach combining DeepSeek R1's Reasoning and Claude. The system provides detailed technical analysis, implementation roadmaps, and architectural decisions for complex software systems.
+An Agno agentic system that provides expert software architecture analysis and recommendations using a dual-model approach combining DeepSeek R1's Reasoning and Claude. The system provides detailed technical analysis, implementation roadmaps, and architectural decisions for complex software systems.
## Features
diff --git a/ai_agent_tutorials/ai_system_architect_r1/ai_system_architect_r1.py b/ai_agent_tutorials/ai_system_architect_r1/ai_system_architect_r1.py
index fb81877a..5236c946 100644
--- a/ai_agent_tutorials/ai_system_architect_r1/ai_system_architect_r1.py
+++ b/ai_agent_tutorials/ai_system_architect_r1/ai_system_architect_r1.py
@@ -8,8 +8,8 @@ from dotenv import load_dotenv
from pydantic import BaseModel, Field
from enum import Enum
import json
-from phi.agent import Agent, RunResponse
-from phi.model.anthropic import Claude
+from agno.agent import Agent, RunResponse
+from agno.models.anthropic import Claude
# Model Constants
DEEPSEEK_MODEL: str = "deepseek-reasoner"
@@ -74,14 +74,22 @@ class ModelChain:
base_url="https://api.deepseek.com"
)
self.claude_client = anthropic.Anthropic(api_key=anthropic_api_key)
- self.agent = Agent(
- model=Claude(id="claude-3-5-sonnet-20241022", api_key=anthropic_api_key),
+
+ # Create Claude model with system prompt
+ claude_model = Claude(
+ id="claude-3-5-sonnet-20241022",
+ api_key=anthropic_api_key,
system_prompt="""Given the user's query and the DeepSeek reasoning:
1. Provide a detailed analysis of the architecture decisions
2. Generate a project implementation roadmap
3. Create a comprehensive technical specification document
4. Format the output in clean markdown with proper sections
- 5. Include diagrams descriptions in mermaid.js format""",
+ 5. Include diagrams descriptions in mermaid.js format"""
+ )
+
+ # Initialize agent with configured model
+ self.agent = Agent(
+ model=claude_model,
markdown=True
)
diff --git a/ai_agent_tutorials/ai_system_architect_r1/requirements.txt b/ai_agent_tutorials/ai_system_architect_r1/requirements.txt
index 63db0b32..e8fce4b3 100644
--- a/ai_agent_tutorials/ai_system_architect_r1/requirements.txt
+++ b/ai_agent_tutorials/ai_system_architect_r1/requirements.txt
@@ -1,4 +1,4 @@
streamlit
openai
anthropic
-phidata
+agno
\ No newline at end of file