* 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
21 lines
550 B
Python
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}")
|