mirror of
https://github.com/tiennm99/serena.git
synced 2026-08-01 08:21:20 +00:00
Initial agno agent implementation
This commit is contained in:
+8
-13
@@ -1,17 +1,12 @@
|
||||
from agno.agent import Agent
|
||||
from agno.models.google import Gemini
|
||||
from agno.playground import Playground, serve_playground_app
|
||||
|
||||
serena_agent = Agent(
|
||||
model=Gemini(id="gemini-2.5-pro-exp-03-25"),
|
||||
description="Serena",
|
||||
tools=[], # Add serena tools here
|
||||
show_tool_calls=True,
|
||||
markdown=True,
|
||||
system_message="", # use PromptFactory
|
||||
)
|
||||
from serena.agno import create_agno_agent
|
||||
|
||||
app = Playground(agents=[serena_agent]).get_app()
|
||||
|
||||
if __name__ == "main":
|
||||
serve_playground_app("playground:app", reload=True)
|
||||
if __name__ == "__main__":
|
||||
serena_agent = create_agno_agent(
|
||||
project_file_path="myproject.yml",
|
||||
model=Gemini(id="gemini-2.5-pro-exp-03-25"),
|
||||
)
|
||||
app = Playground(agents=[serena_agent]).get_app()
|
||||
serve_playground_app(app, reload=False)
|
||||
|
||||
Reference in New Issue
Block a user