Skip to content

Agents Service Errors

consortium.server.exceptions.service_exceptions.agents_service_exceptions

Exception hierarchy:

AgentServiceError(message='', detail=None)

Bases: BaseServiceError

Base exception for all errors that occur within the agents service.

Attributes:

Name Type Description
code

A stable machine-readable string identifying the specific error.

message str

A human-readable description of what went wrong and, where possible, how to resolve it.

detail dict[str, JsonValue] | None

Optional structured context about the error, or None when there is none.

code = 'AGENT_SERVICE_ERROR' class-attribute instance-attribute

AgentNotFoundError(agent_id)

Bases: AgentServiceError

Raised when the requested agent was not found in the agents service.

code = 'AGENT_NOT_FOUND_ERROR' class-attribute instance-attribute