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 instance

  • name (str) – Name for the Reminix agent

  • model (str) – The model to use (default: “claude-sonnet-4-20250514”)

  • system (str | None) – Optional system prompt

  • max_tokens (int) – Maximum tokens in the response (default: 4096)

  • metadata (dict[str, Any] | None) – Optional metadata for the agent

Return type:

Agent

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)