Interface ChatContextEvents
interface ChatContextEvents { emit(event,
message): boolean; emit(event): boolean; on(event,
listener): this; on(event,
listener): this; } Methods
emit
- emit(event, message): boolean
Parameters
- event: "token" | "error" | "abort"
- message: string
Returns boolean
- emit(event): boolean
Parameters
- event: "modelResponseEnd"
Returns boolean
on
- on(event, listener): this
Parameters
- event: "token" | "error" | "abort"
- listener: ((message) => void)
- (message): void
Returns void
Returns this
- on(event, listener): this
Parameters
- event: "modelResponseEnd"
- listener: (() => void)
Returns this