Documentation
¶
Overview ¶
Package wire detects the wire format of an LLM request body.
squoze speaks three dialects out of the box: OpenAI Chat Completions, Anthropic Messages and the OpenAI Responses API. Detection is a cheap structural probe — no full unmarshal, no reflection — because it runs on every request in front of every mutation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Format ¶
type Format int
Format identifies a supported request shape.
func Detect ¶
Detect classifies a request body. Invalid JSON is FormatUnknown: callers must treat unknown as pass-through (fail-open contract).
Priority matters: `system` exists only in Anthropic Messages, while both chat and Anthropic carry `messages`; Responses is identified by its dedicated `instructions`/`input` fields.