Class NaruModelProtocolAnthropicCompat

java.lang.Object
net.thevpc.naru.ext.models.NaruModelProtocolBase
net.thevpc.naru.ext.models.anthropic.NaruModelProtocolAnthropicCompat
All Implemented Interfaces:
NaruModelProtocol

public class NaruModelProtocolAnthropicCompat extends NaruModelProtocolBase
Anthropic Messages API wire protocol (POST {base}/v1/messages).

Unlike the OpenAI-compatible protocol this one:

  • sends x-api-key + anthropic-version headers
  • uses the Messages shape (top-level system, required max_tokens, tool_use/tool_result content blocks)