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

# mirascope.core.anthropic.dynamic_config

## <ApiType type="Module" path="core/anthropic/dynamic_config" symbolName="dynamic_config" /> dynamic_config

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

## <ApiType type="Attribute" path="core/anthropic/dynamic_config" symbolName="AnthropicDynamicConfig" /> AnthropicDynamicConfig

**Type:** <TypeLink type={{"type_str": "BaseDynamicConfig[MessageParam | BaseMessageParam, AnthropicCallParams, Anthropic | AnthropicBedrock | AnthropicVertex]", "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": "MessageParam | 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": "MessageParam", "description": null, "kind": "simple", "doc_identifier": "MessageParam"}, {"type_str": "BaseMessageParam", "description": null, "kind": "simple", "doc_url": "/docs/v1/api/core/base/message_param#basemessageparam"}]}, {"type_str": "AnthropicCallParams", "description": null, "kind": "simple", "doc_url": "/docs/v1/api/core/anthropic/call_params#anthropiccallparams"}, {"type_str": "Anthropic | AnthropicBedrock | AnthropicVertex", "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": "Anthropic", "description": null, "kind": "simple", "doc_identifier": "Anthropic"}, {"type_str": "AnthropicBedrock", "description": null, "kind": "simple", "doc_identifier": "AnthropicBedrock"}, {"type_str": "AnthropicVertex", "description": null, "kind": "simple", "doc_identifier": "AnthropicVertex"}]}]}} />


## <ApiType type="Attribute" path="core/anthropic/dynamic_config" symbolName="AsyncAnthropicDynamicConfig" /> AsyncAnthropicDynamicConfig

**Type:** <TypeLink type={{"type_str": "BaseDynamicConfig[MessageParam | BaseMessageParam, AnthropicCallParams, AsyncAnthropic | AsyncAnthropicBedrock | AsyncAnthropicVertex]", "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": "MessageParam | 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": "MessageParam", "description": null, "kind": "simple", "doc_identifier": "MessageParam"}, {"type_str": "BaseMessageParam", "description": null, "kind": "simple", "doc_url": "/docs/v1/api/core/base/message_param#basemessageparam"}]}, {"type_str": "AnthropicCallParams", "description": null, "kind": "simple", "doc_url": "/docs/v1/api/core/anthropic/call_params#anthropiccallparams"}, {"type_str": "AsyncAnthropic | AsyncAnthropicBedrock | AsyncAnthropicVertex", "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": "AsyncAnthropic", "description": null, "kind": "simple", "doc_identifier": "AsyncAnthropic"}, {"type_str": "AsyncAnthropicBedrock", "description": null, "kind": "simple", "doc_identifier": "AsyncAnthropicBedrock"}, {"type_str": "AsyncAnthropicVertex", "description": null, "kind": "simple", "doc_identifier": "AsyncAnthropicVertex"}]}]}} />

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

Example:

```python
from mirascope.core import prompt_template
from mirascope.core.anthropic import AnthropicDynamicConfig, anthropic_call


@anthropic_call("claude-3-5-sonnet-20240620")
@prompt_template("Recommend a {capitalized_genre} book")
def recommend_book(genre: str) -> AnthropicDynamicConfig:
    return {"computed_fields": {"capitalized_genre": genre.capitalize()}}
```



