ReasoningDelta
class ReasoningDelta extends StreamEvent
Traits
Properties
| string|null | $invocationId | from StreamEvent |
Methods
Get the event as an array.
Broadcast the stream event immediately or using the queue.
Set the invocation ID associated with the event.
Join reasoning blocks, separating each block with a blank line.
Create a reasoning delta event.
Combine reasoning deltas by block, separating each block with a blank line.
Details
at line 45
array
toArray()
Get the event as an array.
in
StreamEvent at line 26
void
broadcast(Channel|array $channels, bool $now = true)
Broadcast the stream event immediately or using the queue.
in
StreamEvent at line 41
void
broadcastNow(Channel|array $channels)
Broadcast the stream event immediately.
in
StreamEvent at line 49
string
type()
Get the event's type.
in
StreamEvent at line 57
StreamEvent
withInvocationId(string $id)
Set the invocation ID associated with the event.
in
StreamEvent at line 67
string
__toString()
Get the string representation of the event.
in
JoinsReasoning at line 16
static protected string
joinReasoning(iterable $blocks)
Join reasoning blocks, separating each block with a blank line.
at line 17
__construct(string $id, string $reasoningId, string $delta, int $timestamp, array|null $summary = null)
Create a reasoning delta event.
at line 29
static string
combine(Collection|array $events)
Combine reasoning deltas by block, separating each block with a blank line.