Agent Templates Framework Errors¶
consortium.framework._core.framework_exceptions.agent_templates_framework_exceptions
¶
AgentTemplatesFrameworkError(message=None, detail=None, **kwargs)
¶
Bases: ComponentsFrameworkError
Base exception for all errors that occur within the agent templates framework.
code = 'AGENT_TEMPLATES_FRAMEWORK_ERROR'
class-attribute
instance-attribute
¶
AgentTemplateConfigurationError(message=None, detail=None, **kwargs)
¶
Bases: ComponentConfigurationError, AgentTemplatesFrameworkError
Base exception for all errors that occur during the configuration of a particular agent template.
code = 'AGENT_TEMPLATE_CONFIGURATION_ERROR'
class-attribute
instance-attribute
¶
InvalidAgentTemplateConfigurationParameterTypeError(component_str, parameter_name, parameter_type)
¶
Bases: InvalidComponentConfigurationParameterTypeError, AgentTemplateConfigurationError
Raised when an agent template's configuration parameter is not of the expected type during agent template configuration.
code = 'INVALID_AGENT_TEMPLATE_CONFIGURATION_PARAMETER_TYPE_ERROR'
class-attribute
instance-attribute
¶
MissingAgentTemplateConfigurationParameterError(component_str, parameter_name)
¶
Bases: MissingComponentConfigurationParameterError, AgentTemplateConfigurationError
Raised when a required parameter is not declared in an agent template's definition during agent template configuration.
code = 'MISSING_AGENT_TEMPLATE_CONFIGURATION_PARAMETER_ERROR'
class-attribute
instance-attribute
¶
EmptyAgentTemplateLabelError(component_filepath)
¶
Bases: EmptyComponentLabelError, AgentTemplateConfigurationError
Raised when an empty label is provided in an agent template's definition during agent template configuration.
code = 'EMPTY_AGENT_TEMPLATE_LABEL_ERROR'
class-attribute
instance-attribute
¶
InvalidAgentTemplateVersionError(component_str, version)
¶
Bases: InvalidComponentVersionError, AgentTemplateConfigurationError
Raised when the agent template version string provided in an agent template's definition is not a valid version string according to PEP 440 during agent template configuration.
code = 'INVALID_AGENT_TEMPLATE_VERSION_ERROR'
class-attribute
instance-attribute
¶
InvalidAgentTemplateDependencyVersionSpecifierError(component_str, invalid_dependency_entry)
¶
Bases: InvalidComponentDependencyVersionSpecifierError, AgentTemplateConfigurationError
Raised when an agent template dependency version specifier string provided in an agent template's definition is not a valid version specifier string as defined in PEP 440 during agent template configuration.
code = 'INVALID_AGENT_TEMPLATE_DEPENDENCY_VERSION_SPECIFIER_ERROR'
class-attribute
instance-attribute
¶
DuplicateAgentTemplateOptionNameError(agent_template_str, option_name)
¶
Bases: AgentTemplateConfigurationError
Raised when duplicate option names are provided in an agent template's definition during agent template configuration.
code = 'DUPLICATE_AGENT_TEMPLATE_OPTION_NAME_ERROR'
class-attribute
instance-attribute
¶
AgentTemplateOptionError(message=None, detail=None, **kwargs)
¶
Bases: AgentTemplatesFrameworkError
Base exception for all errors related to agent template options.
code = 'AGENT_TEMPLATE_OPTION_ERROR'
class-attribute
instance-attribute
¶
AgentTemplateValidatingFunctionError(agent_template_str, error_message, detail=None)
¶
Bases: AgentTemplateOptionError
Raised when an agent template rejects its resolved options.
code = 'AGENT_TEMPLATE_VALIDATING_FUNCTION_ERROR'
class-attribute
instance-attribute
¶
AgentTemplateOptionNotFoundError(agent_template_str, option_name)
¶
Bases: AgentTemplateOptionError
Raised when a provided option name is not found in the agent template when attempting to create an agent generator from the agent template.
code = 'AGENT_TEMPLATE_OPTION_NOT_FOUND_ERROR'
class-attribute
instance-attribute
¶
AgentTemplateOptionValueValidationError(agent_template_str, option_name, option_value, error_message)
¶
Bases: AgentTemplateOptionError
Raised when an invalid value is provided for an agent template option when attempting to create an agent generator from the agent template.
code = 'AGENT_TEMPLATE_OPTION_VALUE_VALIDATION_ERROR'
class-attribute
instance-attribute
¶
MissingRequiredAgentTemplateOptionError(agent_template_str, option_name)
¶
Bases: AgentTemplateOptionError
Raised when a required option is not provided when attempting to create an agent generator from the agent template.