100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.
refactor: Update AI agents to use RunOutput and specify agno version
Shubhamsaboo557a1358314d
diff --git a/advanced_ai_agents/autonomous_game_playing_agent_apps/ai_3dpygame_r1/ai_3dpygame_r1.py b/advanced_ai_agents/autonomous_game_playing_agent_apps/ai_3dpygame_r1/ai_3dpygame_r1.pyindex bea26d54..2a85f78c 100644--- a/advanced_ai_agents/autonomous_game_playing_agent_apps/ai_3dpygame_r1/ai_3dpygame_r1.py+++ b/advanced_ai_agents/autonomous_game_playing_agent_apps/ai_3dpygame_r1/ai_3dpygame_r1.py@@ -1,6 +1,7 @@import streamlit as stfrom openai import OpenAIfrom agno.agent import Agent as AgnoAgent+from agno.run.agent import RunOutputfrom agno.models.openai import OpenAIChat as AgnoOpenAIChatfrom langchain_openai import ChatOpenAIimport asyncio@@ -87,13 +88,13 @@ if generate_code_btn and query:with st.expander("R1's Reasoning"):st.write(reasoning_content)- # Initialize Claude agent (using PhiAgent)+ # Initialize OpenAI agentopenai_agent = AgnoAgent(model=AgnoOpenAIChat(id="gpt-4o",api_key=st.session_state.api_keys["openai"]),- show_tool_calls=True,+ debug_mode=True,markdown=True)@@ -103,7 +104,7 @@ if generate_code_btn and query:{reasoning_content}"""with st.spinner("Extracting code..."):- code_response = openai_agent.run(extraction_prompt)+ code_response: RunOutput = openai_agent.run(extraction_prompt)extracted_code = code_response.content# Store the generated code in session statediff --git a/advanced_ai_agents/autonomous_game_playing_agent_apps/ai_3dpygame_r1/requirements.txt b/advanced_ai_agents/autonomous_game_playing_agent_apps/ai_3dpygame_r1/requirements.txtindex fe7ed8a9..7d68859d 100644--- a/advanced_ai_agents/autonomous_game_playing_agent_apps/ai_3dpygame_r1/requirements.txt+++ b/advanced_ai_agents/autonomous_game_playing_agent_apps/ai_3dpygame_r1/requirements.txt@@ -1,4 +1,4 @@-agno+agno>=2.2.10langchain-openaibrowser-usestreamlit\ No newline at end of filediff --git a/advanced_ai_agents/autonomous_game_playing_agent_apps/ai_tic_tac_toe_agent/app.py b/advanced_ai_agents/autonomous_game_playing_agent_apps/ai_tic_tac_toe_agent/app.pyindex 32e04291..e5701fd0 100644--- a/advanced_ai_agents/autonomous_game_playing_agent_apps/ai_tic_tac_toe_agent/app.py+++ b/advanced_ai_agents/autonomous_game_playing_agent_apps/ai_tic_tac_toe_agent/app.py@@ -7,6 +7,7 @@ import osload_dotenv()from agents import get_tic_tac_toe_players+from agno.run.agent import RunOutputfrom agno.utils.log import loggerfrom utils import (CUSTOM_CSS,@@ -218,7 +219,7 @@ def main():if current_player == "X"else st.session_state.player_o)- response = current_agent.run(+ response: RunOutput = current_agent.run(f"""\Current board state:\n{st.session_state.game_board.get_board_state()}\nAvailable valid moves (row, col): {valid_moves}\n@@ -263,7 +264,7 @@ Respond with ONLY two numbers for row and column, e.g. "1 2".""",st.rerun()else:logger.error(f"Invalid move attempt: {message}")- response = current_agent.run(+ response: RunOutput = current_agent.run(f"""\Invalid move: {message}diff --git a/advanced_ai_agents/autonomous_game_playing_agent_apps/ai_tic_tac_toe_agent/requirements.txt b/advanced_ai_agents/autonomous_game_playing_agent_apps/ai_tic_tac_toe_agent/requirements.txtindex c275c182..9d1425f1 100644--- a/advanced_ai_agents/autonomous_game_playing_agent_apps/ai_tic_tac_toe_agent/requirements.txt+++ b/advanced_ai_agents/autonomous_game_playing_agent_apps/ai_tic_tac_toe_agent/requirements.txt@@ -1,6 +1,6 @@# This file was autogenerated by uv via the following command:# ./generate_requirements.sh-agno==1.1.6+agno>=2.2.10# via -r cookbook/examples/apps/tic_tac_toe/requirements.inaltair==5.5.0# via streamlit