trait HasTextGateway

Properties

protected StepTextGateway $textGateway
protected TextGenerationLoop|null $textGenerationLoop

Methods

textGateway()

Get the provider's text gateway.

useTextGateway(StepTextGateway $gateway)

Set the provider's text gateway.

textGenerationLoop()

Get the multi-step text generation loop wrapping the provider's text gateway.

Details

at line 20
StepTextGateway textGateway()

Get the provider's text gateway.

Return Value

StepTextGateway

at line 30
HasTextGateway useTextGateway(StepTextGateway $gateway)

Set the provider's text gateway.

Changing a shared provider's gateway affects subsequent operations.

Parameters

StepTextGateway $gateway

Return Value

HasTextGateway

at line 42
TextGenerationLoop textGenerationLoop()

Get the multi-step text generation loop wrapping the provider's text gateway.

Return Value

TextGenerationLoop