adk_llm_anthropic (erlang_adk v0.8.0)

View Source

Native Anthropic Messages API provider.

Request/response translation is delegated to the pure bounded codecs under models/anthropic/request. This module owns credential/header handling, HTTP status classification, and incremental SSE delivery through the shared flow-controlled model transport.

Summary

Functions

capabilities()

generate(Config0, Memory, Tools)

-spec generate(map(), list(), list()) -> term().

public_config(Config)

-spec public_config(map()) -> map().

Secret- and handle-free projection for developer tooling.

stream(Config, Memory, Tools, Callback)

-spec stream(map(), list(), list(), fun((binary()) -> ok)) -> term().

stream_content(Config, Memory, Tools, Callback)

-spec stream_content(map(), list(), list(), fun((adk_content:content()) -> ok)) -> term().

validate_config(Config0)

-spec validate_config(map()) -> ok | {error, term()}.