Files
serena/scripts/agno_agent.py
T

22 lines
744 B
Python

from agno.models.anthropic.claude import Claude
from agno.models.google.gemini import Gemini
from agno.playground.playground import Playground
from agno.playground.serve import serve_playground_app
from sensai.util import logging
from sensai.util.helper import mark_used
from serena.agno import SerenaAgnoAgentProvider
mark_used(Gemini, Claude)
logging.configure(level=logging.INFO)
# Define the model to use (see Agno documentation for supported models; these are just examples)
model = Claude(id="claude-3-7-sonnet-20250219")
# model = Gemini(id="gemini-2.5-pro-exp-03-25")
app = Playground(agents=[SerenaAgnoAgentProvider.get_agent(model)]).get_app()
if __name__ == "__main__":
serve_playground_app("agno_agent:app", reload=False)