Skip to main content

Module anthropic

Module anthropic 

Source
Expand description

Anthropic Messages API adapter. Pure translation, no I/O — every dial goes through intel::client, so this module stays testable without a network.

Three differences from the OpenAI dialect are absorbed here and never surface to the loop: system is a top-level field rather than a message, tool calls and results are content blocks rather than message fields, and tool arguments arrive as a JSON object rather than a stringified one.

Constants§

DEFAULT_PATH

Functions§

build_request
parse_response