google.internal._vertex_anthropic_body

(internal) Claude on Vertex is served by `publishers/anthropic` through `:rawPredict`, whose body is the Anthropic Messages format rather than generateContent. The body is built by the anthropic package's lowering (kept factored from URL/auth for exactly this reuse); Vertex additionally requires `anthropic_version` in the body and does NOT take `model` there — the model is named by the endpoint URL. `{"model": null}` is the deletion spelling of `merge_request_body`, applied over the Anthropic body the shared lowering built; a caller who needs it back can put it in `request_body`, which merges after these fields.

Reference version

Signature

function google.internal._vertex_anthropic_body(
input: ai.ModelTurnInput,
stream: bool,
preview: bool = …
) -> string 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

(internal) Claude on Vertex is served by publishers/anthropic through :rawPredict, whose body is the Anthropic Messages format rather than generateContent. The body is built by the anthropic package's lowering (kept factored from URL/auth for exactly this reuse); Vertex additionally requires anthropic_version in the body and does NOT take model there — the model is named by the endpoint URL. {"model": null} is the deletion spelling of merge_request_body, applied over the Anthropic body the shared lowering built; a caller who needs it back can put it in request_body, which merges after these fields.

Source:<builtin>/google/ns_internal/vertex.bamlbytes 1094611810