---
# AUTO-GENERATED API DOCUMENTATION - DO NOT EDIT
title: mirascope.core.mistral.dynamic_config
description: API documentation for mirascope.core.mistral.dynamic_config
---

# mirascope.core.mistral.dynamic_config

This module defines the function return type for functions as LLM calls.

## <ApiType type="Attribute" path="core/mistral/dynamic_config" symbolName="MistralDynamicConfig" /> MistralDynamicConfig

**Type:** <TypeLink type={{"type_str": "BaseDynamicConfig[AssistantMessage | SystemMessage | ToolMessage | UserMessage | BaseMessageParam, MistralCallParams, Mistral]", "description": null, "kind": "generic", "base_type": {"type_str": "BaseDynamicConfig", "description": null, "kind": "simple", "doc_url": "/docs/v1/api/core/base/dynamic_config#basedynamicconfig"}, "parameters": [{"type_str": "AssistantMessage | SystemMessage | ToolMessage | UserMessage | BaseMessageParam", "description": null, "kind": "union", "base_type": {"type_str": "Union", "description": null, "kind": "simple", "doc_url": "https://docs.python.org/3/library/typing.html#typing.Union"}, "parameters": [{"type_str": "AssistantMessage", "description": null, "kind": "simple", "doc_identifier": "AssistantMessage"}, {"type_str": "SystemMessage", "description": null, "kind": "simple", "doc_identifier": "SystemMessage"}, {"type_str": "ToolMessage", "description": null, "kind": "simple", "doc_identifier": "ToolMessage"}, {"type_str": "UserMessage", "description": null, "kind": "simple", "doc_identifier": "UserMessage"}, {"type_str": "BaseMessageParam", "description": null, "kind": "simple", "doc_url": "/docs/v1/api/core/base/message_param#basemessageparam"}]}, {"type_str": "MistralCallParams", "description": null, "kind": "simple", "doc_url": "/docs/v1/api/core/mistral/call_params#mistralcallparams"}, {"type_str": "Mistral", "description": null, "kind": "simple", "doc_identifier": "Mistral"}]}} />

The function return type for functions wrapped with the `mistral_call` decorator.

Example:

```python
from mirascope.core import prompt_template
from mirascope.core.mistral import MistralDynamicConfig, mistral_call


@mistral_call("mistral-large-latest")
@prompt_template("Recommend a {capitalized_genre} book")
def recommend_book(genre: str) -> MistralDynamicConfig:
    return {"computed_fields": {"capitalized_genre": genre.capitalize()}}
```


