anthropic.Client$stream
One model turn against Anthropic's Messages API (`POST https://api.anthropic.com/v1/messages`).
Reference version
Signature
class anthropic.Client$streamOne model turn against Anthropic's Messages API
(POST https://api.anthropic.com/v1/messages).
Construction reads no environment variable, so declaring a client is always safe; the credential resolves when a request is built.
Source:<builtin>/anthropic/messages.bamlbytes 0–0
Fields
model
string | nullapi_key
ai.Credential$stream | nullbase_url
ai.Credential$stream | nullrequest_timeout_ms
int | nulltime_to_first_token_timeout_ms
int | nullmax_tokens
int | nulltemperature
float | nulltop_p
float | nulltop_k
int | nullstop_sequences
string[] | nullthinking
tool_choice
anthropic.ToolChoice$stream | nullrequest_body
baml.json.json$stream | nullheaders
map<string, string> | nullquery_params
map<string, string> | nullcapture_wire
bool | null