anthropic.internal.invoke_stream

The streaming entry point: the same request as `invoke` with `stream: true`, wrapped in an ai.TurnStream over the SSE connection.

Reference version

Signature

function anthropic.internal.invoke_stream(
input: ai.ModelTurnInput
) -> ai.stream.TurnStream throws baml.errors.InvalidArgument | baml.errors.Io | baml.errors.ParseError | baml.errors.Timeout | baml.json.SerializationError | ai.errors.Failure

The streaming entry point: the same request as invoke with stream: true, wrapped in an ai.TurnStream over the SSE connection.

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