Skip to main content

Interface: SpeechGenerationFinishedEvent

Hierarchy

Properties

callId

callId: undefined | string

Unique identifier for the function call.

Inherited from

BaseModelCallFinishedEvent.callId

Defined in

packages/modelfusion/src/core/FunctionEvent.ts:38


durationInMs

durationInMs: number

Duration of the function call in milliseconds.

Inherited from

BaseModelCallFinishedEvent.durationInMs

Defined in

packages/modelfusion/src/core/FunctionEvent.ts:117


eventType

eventType: "finished"

Type of the event. Defined in the subclasses.

Inherited from

BaseModelCallFinishedEvent.eventType

Defined in

packages/modelfusion/src/core/FunctionEvent.ts:102


finishTimestamp

finishTimestamp: Date

Timestamp when the function call finished.

Inherited from

BaseModelCallFinishedEvent.finishTimestamp

Defined in

packages/modelfusion/src/core/FunctionEvent.ts:112


functionId

Optional functionId: string

Optional unique identifier for the function.

Inherited from

BaseModelCallFinishedEvent.functionId

Defined in

packages/modelfusion/src/core/FunctionEvent.ts:48


functionType

functionType: "generate-speech"

Type of the function. Defined in the subclasses.

Overrides

BaseModelCallFinishedEvent.functionType

Defined in

packages/modelfusion/src/model-function/generate-speech/SpeechGenerationEvent.ts:23


input

input: string

The main input to the model call. The type depends on the call type or model.

Overrides

BaseModelCallFinishedEvent.input

Defined in

packages/modelfusion/src/model-function/generate-speech/SpeechGenerationEvent.ts:24


model

model: ModelInformation

Inherited from

BaseModelCallFinishedEvent.model

Defined in

packages/modelfusion/src/model-function/ModelCallEvent.ts:85


parentCallId

Optional parentCallId: string

Unique identifier of the call id of the parent function.

Inherited from

BaseModelCallFinishedEvent.parentCallId

Defined in

packages/modelfusion/src/core/FunctionEvent.ts:43


result

result: SpeechGenerationFinishedEventResult

The result of the model call. Can be "success", "error", or "abort". Additional information is provided depending on the status.

Overrides

BaseModelCallFinishedEvent.result

Defined in

packages/modelfusion/src/model-function/generate-speech/SpeechGenerationEvent.ts:25


runId

Optional runId: string

Unique identifier for the run. Only available if the function is part of a run.

Inherited from

BaseModelCallFinishedEvent.runId

Defined in

packages/modelfusion/src/core/FunctionEvent.ts:54


sessionId

Optional sessionId: string

Unique identifier for the session. Only available if the function is part of a run with a session.

Inherited from

BaseModelCallFinishedEvent.sessionId

Defined in

packages/modelfusion/src/core/FunctionEvent.ts:60


settings

settings: unknown

The model settings used for the call. The type depends on the model.

Inherited from

BaseModelCallFinishedEvent.settings

Defined in

packages/modelfusion/src/model-function/ModelCallEvent.ts:95


startTimestamp

startTimestamp: Date

Timestamp when the function call started.

Inherited from

BaseModelCallFinishedEvent.startTimestamp

Defined in

packages/modelfusion/src/core/FunctionEvent.ts:107


timestamp

timestamp: Date

Timestamp of the event.

Inherited from

BaseModelCallFinishedEvent.timestamp

Defined in

packages/modelfusion/src/core/FunctionEvent.ts:71


userId

Optional userId: string

Unique identifier for the user. Only available if the function is part of a run with a user.

Inherited from

BaseModelCallFinishedEvent.userId

Defined in

packages/modelfusion/src/core/FunctionEvent.ts:66