Skip to main content

TextEvent

ug-js-sdk


ug-js-sdk / TextEvent

Interface: TextEvent

Defined in: types/index.ts:752

Text chunk from the assistant's response. Received via onTextMessage hook. Multiple events may be emitted for streaming responses.

Extends

  • InteractResponse

Properties

uid

uid: string

Defined in: types/index.ts:474

Unique identifier matching the request

Inherited from

InteractResponse.uid


client_start_time?

optional client_start_time: string

Defined in: types/index.ts:476

ISO timestamp when client sent the original request

Inherited from

InteractResponse.client_start_time


server_start_time?

optional server_start_time: string

Defined in: types/index.ts:478

ISO timestamp when server started processing

Inherited from

InteractResponse.server_start_time


server_end_time?

optional server_end_time: string

Defined in: types/index.ts:480

ISO timestamp when server finished processing

Inherited from

InteractResponse.server_end_time


kind

kind: "interact"

Defined in: types/index.ts:736

The kind of response matching the request

Inherited from

InteractResponse.kind


event

event: "text"

Defined in: types/index.ts:753

The type of event

Overrides

InteractResponse.event


text

text: string

Defined in: types/index.ts:755

The text content