Skip to main content

Parameters

ParameterTypeDefaultDescription
idOptional[str]Autogenerated UUIDAgentOS ID
nameOptional[str]NoneAgentOS name
descriptionOptional[str]NoneAgentOS description
versionOptional[str]NoneAgentOS version
agentsOptional[List[Agent]]NoneList of agents available in the AgentOS
teamsOptional[List[Team]]NoneList of teams available in the AgentOS
workflowsOptional[List[Workflow]]NoneList of workflows available in the AgentOS
interfacesOptional[List[BaseInterface]]NoneList of interfaces available in the AgentOS
configOptional[Union[str, AgentOSConfig]]NoneUser-provided configuration for the AgentOS. Either a path to a YAML file or an AgentOSConfig instance.
settingsOptional[AgnoAPISettings]NoneSettings for the AgentOS API
base_appOptional[FastAPI]NoneCustom FastAPI APP to use for the AgentOS
lifespanOptional[Any]NoneLifespan context manager for the FastAPI app
enable_mcp_serverboolFalseWhether to enable MCP (Model Context Protocol)
on_route_conflictLiteral["preserve_agentos", "preserve_base_app", "error"]"preserve_agentos"What to do when a route conflict is detected in case a custom base_app is provided.
telemetryboolTrueLog minimal telemetry for analytics

Functions

get_app

Get the FastAPI APP configured for the AgentOS.

get_routes

Get the routes configured for the AgentOS.

serve

Run the app, effectively starting the AgentOS. Parameters:
  • app (Union[str, FastAPI]): FastAPI APP instance
  • host (str): Host to bind. Defaults to localhost
  • port (int): Port to bind. Defaults to 7777
  • workers (Optional[int]): Number of workers to use. Defaults to None
  • reload (bool): Enable auto-reload for development. Defaults to False
I