Add SerenaAgnoToolkit (replacing list of Functions)

This commit is contained in:
Dominik Jain committed 2025-03-31 13:53:18 +02:00
1 parent 03c320bcd4
commit 131ca8a15e
2 files changed
+17 -17

No files matched your search

+2 -5
View File
@@ -4,22 +4,19 @@ from agno.playground import Playground, serve_playground_app
from dotenv import load_dotenv
from serena.agent import SerenaAgent
from serena.agno import get_agno_functions
from serena.agno import SerenaAgnoToolkit
load_dotenv()
project_file_path = "../myproject.yml"
serena_agent = SerenaAgent(project_file_path)
tools = get_agno_functions(serena_agent)
model = Claude(id="claude-3-7-sonnet-20250219")
agno_agent = Agent(
name="Serena",
model=model,
description="A fully-featured coding assistant",
tools=tools, # type: ignore
tools=[SerenaAgnoToolkit(serena_agent)], # type: ignore
show_tool_calls=True,
markdown=True,
system_message="", # Todo