from mirascope.core import anthropic


@anthropic.call("claude-3-5-sonnet-latest")
def recommend_book(genre: str) -> anthropic.AnthropicDynamicConfig:
    return {"messages": [{"role": "user", "content": f"Recommend a {genre} book"}]} # [!code highlight]


response: anthropic.AnthropicCallResponse = recommend_book("fantasy")
print(response.content)
