lunary/anthropic.
Supported surface
The monitored client supports the current Anthropic Messages API surface:
messages.create(...)- Raw streaming via
messages.create({ stream: true }) messages.parse(...)messages.stream(...)beta.messages.create(...)beta.messages.parse(...)beta.messages.stream(...)beta.messages.toolRunner(...)
thinking, redacted_thinking, tool_use, tool_result, server_tool_use, and web_search_tool_result, along with token usage and cached input tokens.Typical usage
Structured outputs with Lunary context:Helper streams and beta server tools:Beta tool-runner loops:Anthropic validates the provider-side
metadata object. Use Anthropic-supported fields such as user_id there, and use tags, userId, and userProps for Lunary-only context. For Anthropic beta features that require betas: [...], pass the beta headers exactly as Anthropic documents.