Agent templates service¶
consortium.server.services.agent_templates_service
¶
AgentTemplatesService(agent_profiles_service)
¶
get_agent_template_by_agent_template_id(agent_template_id)
¶
Returns an agent template by its ID, searching across all loaded agent profiles.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
agent_template_id
|
str | UUID
|
The ID of the agent template to retrieve. |
required |
Returns:
| Type | Description |
|---|---|
BaseAgentTemplate
|
The requested agent template. |
Raises:
| Type | Description |
|---|---|
AgentTemplateIDNotFoundError
|
If no agent template with the given ID is found. |
get_agent_template_by_label(label)
¶
Returns an agent template by its label, searching across all loaded agent profiles.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
label
|
str
|
The label of the agent template to retrieve. |
required |
Returns:
| Type | Description |
|---|---|
BaseAgentTemplate
|
The requested agent template. |
Raises:
| Type | Description |
|---|---|
AgentTemplateLabelNotFoundError
|
If no agent template with the given label is found. |
get_all_agent_templates()
¶
Returns all agent templates across all loaded agent profiles.
Returns:
| Type | Description |
|---|---|
list[BaseAgentTemplate]
|
A list of all available agent templates. Empty if no agent profiles are |
list[BaseAgentTemplate]
|
loaded. |