c6af9e284a
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (python) (push) Waiting to run
Codespell / Check for spelling errors (push) Waiting to run
Build and Push Docker Images / build-and-push (push) Waiting to run
Docs Build / build (push) Waiting to run
Docs Build / deploy (push) Blocked by required conditions
Tests / catch-all (windows-latest) (push) Has been cancelled
Tests / jvm (macos-latest) (push) Has been cancelled
Tests / jvm (ubuntu-latest) (push) Has been cancelled
Tests / jvm (windows-latest) (push) Has been cancelled
Tests / native (macos-latest) (push) Has been cancelled
Tests / native (ubuntu-latest) (push) Has been cancelled
Tests / native (windows-latest) (push) Has been cancelled
Tests / niche (ubuntu-latest) (push) Has been cancelled
Tests / other-langs (macos-latest) (push) Has been cancelled
Tests / other-langs (ubuntu-latest) (push) Has been cancelled
Tests / other-langs (windows-latest) (push) Has been cancelled
Tests / catch-all (macos-latest) (push) Has been cancelled
Tests / catch-all (ubuntu-latest) (push) Has been cancelled
34 lines
976 B
Python
34 lines
976 B
Python
from agno.models.anthropic.claude import Claude
|
|
from agno.models.google.gemini import Gemini
|
|
from agno.os import AgentOS
|
|
from sensai.util import logging
|
|
from sensai.util.helper import mark_used
|
|
|
|
from serena.agno import SerenaAgnoAgentProvider
|
|
|
|
mark_used(Gemini, Claude)
|
|
|
|
# initialize logging
|
|
if __name__ == "__main__":
|
|
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")
|
|
|
|
# Create the Serena agent using the existing provider
|
|
serena_agent = SerenaAgnoAgentProvider.get_agent(model)
|
|
|
|
# Create AgentOS app with the Serena agent
|
|
agent_os = AgentOS(
|
|
description="Serena coding assistant powered by AgentOS",
|
|
id="serena-agentos",
|
|
agents=[serena_agent],
|
|
)
|
|
|
|
app = agent_os.get_app()
|
|
|
|
if __name__ == "__main__":
|
|
# Start the AgentOS server
|
|
agent_os.serve(app="agno_agent:app", reload=False)
|