Skip to main content

TextEvent

ug-js-sdk


ug-js-sdk / TextEvent

Interface: TextEvent

Defined in: types/index.ts:799

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:517

Unique identifier matching the request

Inherited from

InteractResponse.uid


client_start_time?

optional client_start_time: string

Defined in: types/index.ts:519

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:521

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:523

ISO timestamp when server finished processing

Inherited from

InteractResponse.server_end_time


kind

kind: "interact"

Defined in: types/index.ts:783

The kind of response matching the request

Inherited from

InteractResponse.kind


event

event: "text"

Defined in: types/index.ts:800

The type of event

Overrides

InteractResponse.event


text

text: string

Defined in: types/index.ts:802

The text content