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.MessagesRequest

The 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 40664404

Fields

model

string

max_tokens

int

temperature

float | null

top_p

float | null

top_k

int | null

stop_sequences

string[] | null

stream

bool | null