HandlesTextStreaming
trait HandlesTextStreaming
Methods
processTextStream(string $invocationId, Provider $provider, string $model, StreamInterface $streamBody)
Process a Chat Completions streaming response and yield Hypervel stream events.
array
mapStreamToolCalls(array $toolCalls)
Map raw streaming tool call data to ToolCall DTOs.
string
generateEventId()
Generate a lowercase UUID v7 for use as a stream event ID.
Details
at line 33
protected Generator
processTextStream(string $invocationId, Provider $provider, string $model, StreamInterface $streamBody)
Process a Chat Completions streaming response and yield Hypervel stream events.
at line 232
protected array
mapStreamToolCalls(array $toolCalls)
Map raw streaming tool call data to ToolCall DTOs.
at line 245
protected string
generateEventId()
Generate a lowercase UUID v7 for use as a stream event ID.