TurnEvents
Add the following line to your scenario code to use the events:
require(Modules.Pipecat);
Constants
ConnectorInformation
Contains information about connector.
Parameters
data:
{customEvent: string, payload: Object}
OptionalThe 'payload' parameter contains the event's data.
turnDetector:
The Pipecat.TurnDetector instance.
Error
The error response event.
Parameters
reason:
string
The error reason.
turnDetector:
The Pipecat.TurnDetector instance.
Result
The Pipecat.TurnDetector result.
Parameters
endOfTurn:
boolean
Indicates whether the event is emitted at the end of the turn. Is true when the model predicts the end of the turn.
probability:
number
The probability of the result, in the range [0.0, 1.0].
turnDetector:
The Pipecat.TurnDetector instance.