trait HandlesTextGeneration

Methods

processTextStream(string $invocationId, Provider $provider, string $model, StreamInterface $streamBody)

Process streamed response events and return the completed step.

string
generateEventId()

Generate a lowercase UUID v7 for use as a stream event ID.

Details

at line 36
protected Generator processTextStream(string $invocationId, Provider $provider, string $model, StreamInterface $streamBody)

Process streamed response events and return the completed step.

Parameters

string $invocationId
Provider $provider
string $model
StreamInterface $streamBody

Return Value

Generator

at line 335
protected string generateEventId()

Generate a lowercase UUID v7 for use as a stream event ID.

Return Value

string