Skip to content
Navigation

Agent management and workspace routes. Provides endpoints for listing registered agents, inspecting agent details, and accessing workspace artifacts.

python
from orbiter_server.agents import AgentInfo, WorkspaceFile, WorkspaceFileContent, agent_router

AgentInfo

python
class AgentInfo(BaseModel)

Summary information about a registered agent.

FieldTypeDefaultDescription
namestr(required)Agent name
modelstr""Model string
is_defaultboolFalseWhether this is the default agent
toolslist[str][]Names of registered tools
handoffslist[str][]Names of handoff targets
max_stepsint0Maximum LLM call steps
temperaturefloat0.0Temperature setting
max_tokensint | NoneNoneMaximum token limit

WorkspaceFile

python
class WorkspaceFile(BaseModel)

Metadata about a file/artifact in an agent’s workspace.

FieldTypeDefaultDescription
namestr(required)File name
artifact_typestr"text"Artifact type
version_countint1Number of versions

WorkspaceFileContent

python
class WorkspaceFileContent(BaseModel)

Full content of a workspace file.

FieldTypeDefaultDescription
namestr(required)File name
contentstr(required)File content
artifact_typestr"text"Artifact type
version_countint1Number of versions

agent_router

python
agent_router = APIRouter(prefix="/agents", tags=["agents"])

FastAPI router for agent management endpoints.

Endpoints

GET /agents

List all registered agents.

Response: list[AgentInfo]

bash
curl http://localhost:8000/agents
json
[
  {
    "name": "helper",
    "model": "openai:gpt-4o",
    "is_default": true,
    "tools": ["web_search", "calculator"],
    "handoffs": [],
    "max_steps": 10,
    "temperature": 0.7,
    "max_tokens": null
  }
]

GET /agents/{agent_name}

Get details for a specific agent.

ParameterTypeDescription
agent_namestr (path)Agent name

Response: AgentInfo

Errors: 404 if agent not found.

bash
curl http://localhost:8000/agents/helper

GET /agents/{agent_name}/workspace

List files in an agent’s workspace.

ParameterTypeDescription
agent_namestr (path)Agent name

Response: list[WorkspaceFile]

Returns an empty list if the agent has no workspace. Returns 404 if the agent is not found.

bash
curl http://localhost:8000/agents/helper/workspace

GET /agents/{agent_name}/workspace/{file_name}

Read the content of a specific workspace file.

ParameterTypeDescription
agent_namestr (path)Agent name
file_namestr (path)File name (supports nested paths)

Response: WorkspaceFileContent

Errors:

StatusCondition
404Agent not found, agent has no workspace, or file not found
bash
curl http://localhost:8000/agents/helper/workspace/notes.txt