mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-14 04:16:34 +00:00
Add SerenaAgnoToolkit (replacing list of Functions)
This commit is contained in:
1 parent
03c320bcd4
commit
131ca8a15e
2 files changed
+17
-17
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user