Skip to content

mirascope.core.base.dynamic_config

The base type in a function as an LLM call to return for dynamic configuration.

Usage Documentation

Dynamic Configuration

BaseDynamicConfig module-attribute

BaseDynamicConfig = (
    DynamicConfigBase
    | DynamicConfigMessages[_MessageParamT]
    | DynamicConfigCallParams[_CallParamsT]
    | DynamicConfigFull[_MessageParamT, _CallParamsT]
    | 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.