Sycophant.WireProtocol.AnthropicMessages
(sycophant v0.4.2)
Copy Markdown
Wire protocol adapter for the Anthropic Messages API format.
Encodes Sycophant Request structs into the /v1/messages
JSON format and decodes responses back into Response structs.
Summary
Functions
Options
Types
@type t() :: %{ optional(:stop) => [binary()], optional(:speed) => :standard | :fast, optional(:max_tokens) => integer(), optional(:temperature) => float(), optional(:top_p) => float(), optional(:top_k) => integer(), optional(:reasoning_effort) => :none | :minimal | :low | :medium | :high | :xhigh, optional(:reasoning_budget) => integer(), optional(:reasoning_summary) => :auto | :concise | :detailed | :none, optional(:service_tier) => binary(), optional(:tool_choice) => any(), optional(:parallel_tool_calls) => boolean() }
Functions
Options:
:stop(list ofString.t/0) - Stop sequences:speed(:standard|:fast) - Inference speed mode:max_tokens(integer/0) - Maximum number of tokens to generate:temperature(float/0) - Sampling temperature:top_p(float/0) - Nucleus sampling threshold:top_k(integer/0) - Top-K sampling:reasoning_effort(:none|:minimal|:low|:medium|:high|:xhigh) - Extended thinking effort level:reasoning_budget(integer/0) - Explicit reasoning token budget:reasoning_summary(:auto|:concise|:detailed|:none) - How to summarize reasoning:service_tier(String.t/0) - Service tier selection:tool_choice(term/0) - Tool selection strategy:parallel_tool_calls(boolean/0) - Allow parallel tool calls