Files
upo-app-agents/demos/agno_agent.py
Giacomo Bertolazzi 38daafce9a Refactor team management (#26)
* Refactor pipeline integration
* remove direct pipeline dependency from ChatManager and TelegramApp
* introduce PipelineInputs for better configuration management
* listener personalizzati per eventi nella funzione di interazione della pipeline
* added demos for agno
* USD in configs
* Dockerfile better cache
2025-10-15 14:00:39 +02:00

21 lines
550 B
Python

from agno.agent import Agent
from agno.models.google import Gemini
from agno.tools.reasoning import ReasoningTools
from dotenv import load_dotenv
try:
load_dotenv()
reasoning_agent = Agent(
model=Gemini(),
tools=[
ReasoningTools(),
],
instructions="Use tables to display data.",
markdown=True,
)
result = reasoning_agent.run("Scrivi una poesia su un gatto. Sii breve.") # type: ignore
print(result.content)
except Exception as e:
print(f"Si è verificato un errore: {e}")