Skip to content

Agent Templates Service Errors

consortium.server.exceptions.service_exceptions.agent_templates_service_exceptions

Exception hierarchy:

AgentTemplatesServiceError(message='', detail=None)

Bases: BaseServiceError

Base exception for all errors that occur within the agent templates 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_TEMPLATES_SERVICE_ERROR' class-attribute instance-attribute

AgentTemplateNotFoundError(message='', detail=None)

Bases: AgentTemplatesServiceError

Raised when the requested agent template was not found in the agent templates service.

code = 'AGENT_TEMPLATE_NOT_FOUND_ERROR' class-attribute instance-attribute

AgentTemplateIDNotFoundError(agent_template_id)

Bases: AgentTemplateNotFoundError

Raised when the requested agent template with the provided agent template ID was not found in the agent templates service.

code = 'AGENT_TEMPLATE_ID_NOT_FOUND_ERROR' class-attribute instance-attribute

AgentTemplateLabelNotFoundError(label)

Bases: AgentTemplateNotFoundError

Raised when the requested agent template with the provided label was not found in the agent templates service.

code = 'AGENT_TEMPLATE_LABEL_NOT_FOUND_ERROR' class-attribute instance-attribute