Skip to main content

Module api

Module api 

Source

Structs§

CreateSessionApiRequest
Request body for POST /sessions.
CreateSessionResponse
Response body for POST /sessions.
DelegateRequest
Request body for POST /agents/:id/delegate.
ErrorResponse
Error response body.
PolicyExplainRequest
Request body for POST /policy/explain.
PolicyExplainResponse
Response body for POST /policy/explain.
PolicyValidateRequest
Request body for POST /policy/validate.
RegisterAgentRequest
Request body for POST /agents.
RegisterAgentResponse
Response body for POST /agents.
SessionCloseResponse
Response body for POST /sessions/:id/close.
SessionStatusResponse
Response body for GET /sessions/:id.
TokenRequest
Request body for POST /agents/:id/token.
TokenResponse
Response for token issuance.

Functions§

close_session
POST /sessions/:id/close: close a session and return summary.
create_session
POST /sessions: create a new task session.
deactivate_agent
DELETE /agents/:id: deactivate agent + cascade.
delegate_agent
POST /agents/:id/delegate: create delegation to sub-agent.
explain_policy
POST /policy/explain: dry-run policy evaluation without executing.
get_agent
GET /agents/:id: get agent details.
get_session
GET /sessions/:id: get live session status.
issue_agent_token
POST /agents/:id/token: issue new short-lived credential.
list_agents
GET /agents: list all agents.
list_delegations
GET /agents/:id/delegations: list incoming and outgoing delegations.
policy_schema
GET /policy/schema: returns the policy TOML schema as JSON Schema.
register_agent
POST /agents: register a new agent.
reload_policy
POST /policy/reload: re-read the policy file and atomically swap the config.
router
Build the axum router for the lifecycle API.
validate_policy
POST /policy/validate: validate a policy TOML string without loading it.