anthropic.internal.MessagesRequest
The complete request body. Optional fields are dropped before serialization (see _anth_drop_nulls), so an unset option never reaches the wire.
Reference version
Signature
class anthropic.internal.MessagesRequestThe complete request body. Optional fields are dropped before serialization (see _anth_drop_nulls), so an unset option never reaches the wire.
Source:<builtin>/anthropic/ns_internal/messages.bamlbytes 4066–4404
Fields
model
stringmax_tokens
intsystem
anthropic.internal.AnthBlock[] | nullmessages
tools
anthropic.internal.AnthToolParam[] | nulltool_choice
temperature
float | nulltop_p
float | nulltop_k
int | nullstop_sequences
string[] | nullthinking
stream
bool | null