azad.type_definitions Module¶
azad.type_definitions ¶
Task type definitions to avoid circular dependencies.
Classes¶
PromptTemplateType ¶
Bases: str, Enum
Enum defining known prompt template types.
CacheDialect ¶
CompressionConfig ¶
Bases: BaseModel
Configuration for message history compression.
Attributes¶
enabled
class-attribute
instance-attribute
¶
enabled: bool = Field(True, description='Whether to automatically compress message history when token limit is exceeded')
TaskConfig ¶
Bases: BaseModel
Configuration for a specific task.
Attributes¶
cache_dialect
class-attribute
instance-attribute
¶
cache_dialect: CacheDialect | None = Field(None, description='Optional cache dialect for the task')
enable_explicit_caching
class-attribute
instance-attribute
¶
enable_explicit_caching: bool | None = Field(None, description='Optional flag to enable explicit caching for gemini models')
dynamic_environment_details_block
class-attribute
instance-attribute
¶
dynamic_environment_details_block: str | None = Field(None, description='Optional dynamic environment details block that will be added only to the last message')
template_keys
class-attribute
instance-attribute
¶
template_keys: PromptTemplateType | None = Field(None, description='Optional template keys to be used for the task')
extra_params
class-attribute
instance-attribute
¶
extra_params: Dict[str, Any] | None = Field(default_factory=dict, description='Extra parameters from dynamic environment details to pass to LiteLLM')
TaskParameterType ¶
Bases: str, Enum
Enum defining known parameter types for task lifecycle operations.
ParameterMetadata ¶
ToolExample ¶
ToolMetadata ¶
Bases: BaseModel
System-level tool metadata.
Attributes¶
task_lifecycle_output_keypairs
class-attribute
instance-attribute
¶
task_lifecycle_output_keypairs: Optional[Dict[str, TaskParameterType]] = None
requires_approval
class-attribute
instance-attribute
¶
requires_approval: bool = Field(False, description='Flag indicating if this tool always requires explicit user approval, regardless of auto_approve setting')