-
-
Notifications
You must be signed in to change notification settings - Fork 972
Open
Description
Intention
To use OpenRouter and Serena with Agno.
Observation
This is confusing, because it seems to me that the Serena + Agno documentation in the README must not work for anyone, since only Claude and Gemini are configured out of the box.
Expected
README instructions for Agno + Serena should work with models other than OpenAI.
Investigation
-
This seems to be caused by AgentMemory not supporting any models other than OpenAI-like models.
[Bug]: Wrong Classifier on AgentMemory for Ollama agno-agi/agno#2607 (comment) -
Serena is currently using agno
1.2.15
but the latest agno version is1.5.6
which uses memory in a different way that seems to allow specification of the model. https://docs.agno.com/agents/memory#show-me-the-code%3A-memory-%26-storage-in-action
Attempted Remediation
- Attempted to specify OpenRouter with "openai/o3", but
AgentMemory
reaches for OpenAI by default, using the envOPENAI_API_KEY
directly. - Attempted to modify
SerenaAgnoAgentProvider
to specify the OpenRouter model into theclassifier
argument of Agent, but no cigar. - Added OpenRouter model simultaneously for
classifier
,summarizer
, andmanager
. - Updated agno to
1.5.6
and made the appropriate changes tosrc/serena/agno.py
to use the supplied model. - Removed
memory
from Agent and setenable_agentic_memory
to False.
Metadata
Metadata
Assignees
Labels
No labels