adk_llm_compatible (erlang_adk v0.8.0)

View Source

OpenAI-compatible Chat Completions provider.

This adapter is intentionally narrower than "arbitrary HTTP". The operator selects a trusted HTTPS base_url (normally through a provider profile), while the adapter owns the fixed /chat/completions path and a small allow-list of authentication header shapes. Callers cannot inject header names, request paths, redirects, or transport authority.

Summary

Functions

Config-sensitive capability projection for direct adapter inspection. A vendor profile remains the authoritative place to narrow capabilities; response_format => unsupported is reflected for both locked profile policy and trusted legacy configuration.

Secret- and injected-handle-free projection for developer tooling.

Functions

capabilities()

-spec capabilities() -> map().

capabilities(Config)

-spec capabilities(map()) -> map().

Config-sensitive capability projection for direct adapter inspection. A vendor profile remains the authoritative place to narrow capabilities; response_format => unsupported is reflected for both locked profile policy and trusted legacy configuration.

generate(Config, Memory, Tools)

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

public_config(Config)

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

Secret- and injected-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(Config)

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