Skip to content

Commit

Permalink
phidata -> agno
Browse files Browse the repository at this point in the history
  • Loading branch information
Madhuvod committed Feb 2, 2025
1 parent 5bd5227 commit df784d9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ai_agent_tutorials/ai_system_architect_r1/README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
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"
Expand Down Expand Up @@ -74,14 +74,22 @@ def __init__(self, deepseek_api_key: str, anthropic_api_key: str) -> None:
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
)

Expand Down
2 changes: 1 addition & 1 deletion ai_agent_tutorials/ai_system_architect_r1/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
streamlit
openai
anthropic
phidata
agno

0 comments on commit df784d9

Please sign in to comment.