AnthropicGateway
constructor(apiKey: String, host: String = DEFAULT_ANTHROPIC_HOST, anthropicVersion: String = DEFAULT_ANTHROPIC_VERSION, engine: HttpClientEngine? = null, json: Json = DEFAULT_JSON)
Parameters
apiKey
API key sent in the x-api-key header. Required.
host
Base URL of the Anthropic HTTP API. Override for Anthropic-compatible endpoints (e.g. AWS Bedrock proxies that speak the Anthropic protocol).
anthropicVersion
Value of the mandatory anthropic-version header.
engine
Optional Ktor engine override. Tests inject a MockEngine here.
json
Json codec used for request / response (de)serialisation.