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(
c: anthropic.Client,
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 49894–52207