mirascope.core.base.dynamic_config¶
The base type in a function as an LLM call to return for dynamic configuration.
BaseDynamicConfig
module-attribute
¶
BaseDynamicConfig = (
DynamicConfigBase
| DynamicConfigMessages[_MessageParamT]
| DynamicConfigCallParams[_CallParamsT]
| DynamicConfigClient[_ClientT]
| DynamicConfigMessagesCallParams[
_MessageParamT, _CallParamsT
]
| DynamicConfigMessagesClient[_MessageParamT, _ClientT]
| DynamicConfigCallParamsClient[_CallParamsT, _ClientT]
| DynamicConfigFull[
_MessageParamT, _CallParamsT, _ClientT
]
| None
)
The base type in a function as an LLM call to return for dynamic configuration.
Attributes:
Name | Type | Description |
---|---|---|
metadata |
Any metadata to include in call responses. |
|
computed_fields |
Fields to be computed and injected into the prompt template at runtime. |
|
tools |
Tools to be provided to the LLM API call at runtime. |
|
messages |
Custom message parameters, which will override any other form of writing prompts when used. |
|
call_params |
Call parameters to use when making the LLM API call. |
|
client |
A custom client to use in place of the default client. |