Skip to main content

Interface: LocalChatTransportOptions

Defined in: react/src/transports/local-chat-transport.ts:5

Properties​

chat​

chat: object

Defined in: react/src/transports/local-chat-transport.ts:7

The chat that runs each turn here, bound to its history (ChatBot.forUser(bot, { history })).

clearHistory()​

clearHistory(): Promise<void>

Returns​

Promise<void>

process()​

process(input, options?): Promise<unknown>

Parameters​
input​

string

options?​

ProcessOptions

Returns​

Promise<unknown>

rewindLastTurn()​

rewindLastTurn(): Promise<void>

Drops the last turn, so a regenerated message runs in its place.

Returns​

Promise<void>


onEvent?​

optional onEvent?: (event, meta) => void

Defined in: react/src/transports/local-chat-transport.ts:14

Every raw stream event of a turn, before it becomes chunks.

Parameters​

event​

StreamEvent

meta​
agentName​

string

Returns​

void