ClientAwareTrait
Tags
Table of Contents
Properties
Methods
- setClient() : void
- log() : void
- notify() : void
- progress() : void
- sample() : CreateSamplingMessageResult
Properties
$client
private
ClientGateway
$client
Methods
setClient()
public
setClient(ClientGateway $client) : void
Parameters
- $client : ClientGateway
log()
private
log(LoggingLevel $level, mixed $data[, string|null $logger = null ]) : void
Parameters
- $level : LoggingLevel
- $data : mixed
- $logger : string|null = null
notify()
private
notify(Notification $notification) : void
Parameters
- $notification : Notification
progress()
private
progress(float $progress[, float|null $total = null ][, string|null $message = null ]) : void
Parameters
- $progress : float
- $total : float|null = null
- $message : string|null = null
sample()
private
sample(string $prompt[, int $maxTokens = 1000 ][, int $timeout = 120 ][, SampleOptions $options = [] ]) : CreateSamplingMessageResult
Parameters
- $prompt : string
- $maxTokens : int = 1000
- $timeout : int = 120
- $options : SampleOptions = []