reminix.adapters.anthropic.from_anthropic¶
- reminix.adapters.anthropic.from_anthropic(client, *, name, model='claude-sonnet-4-20250514', system=None, max_tokens=4096, metadata=None)[source]¶
Create a Reminix Agent from an Anthropic AsyncAnthropic client.
- Parameters:
client (
AnthropicClientProtocol) – An Anthropic AsyncAnthropic client instancename (
str) – Name for the Reminix agentmodel (
str) – The model to use (default: “claude-sonnet-4-20250514”)max_tokens (
int) – Maximum tokens in the response (default: 4096)metadata (
dict[str,Any] |None) – Optional metadata for the agent
- Return type:
- Returns:
A Reminix Agent that wraps the Anthropic client
Example:
from anthropic import AsyncAnthropic from reminix.adapters.anthropic import from_anthropic from reminix.runtime import serve client = AsyncAnthropic() agent = from_anthropic(client, name="claude-agent", model="claude-sonnet-4-20250514") serve(agent)