anthropic.internal.messages_request

The typed Messages request for one model turn. Public so a Vertex/Bedrock client can build the identical body and re-target it.

Reference version

Signature

function anthropic.internal.messages_request(
input: ai.ModelTurnInput,
stream: bool,
preview: bool = …
) -> anthropic.internal.MessagesRequest throws baml.errors.InvalidArgument | baml.errors.Io | baml.errors.Timeout | baml.json.SerializationError | ai.errors.InvalidRequest | ai.errors.NetworkFailure | ai.errors.PreviewUnsupported | ai.errors.PromptRenderError

The typed Messages request for one model turn. Public so a Vertex/Bedrock client can build the identical body and re-target it.

Source:<builtin>/anthropic/ns_internal/messages.bamlbytes 2523228664