Skip to content

ppagent / directRunBot

Function: directRunBot()

directRunBot(bot, type, content, customData?, onStream?): Promise<{ all: object[]; text: string; }>

Defined in: src/util/helper.ts:728

Parameters

bot

IBot

type

SourceChatMessageType

content

SourceChatContent

customData?

IAgentChatEventData

onStream?

(type, content) => void

Returns

Promise<{ all: object[]; text: string; }>