Skip to main content

Interface: ChatLlm

LLM that responds to user queries. Provides both streaming and awaited options.

Methods

answerQuestionAwaited

answerQuestionAwaited(params): Promise<ChatRequestAssistantMessage>

Parameters

NameType
paramsLlmAnswerQuestionParams

Returns

Promise<ChatRequestAssistantMessage>

Defined in

packages/mongodb-chatbot-server/src/services/ChatLlm.ts:150


answerQuestionStream

answerQuestionStream(params): Promise<OpenAiStreamingResponse>

Parameters

NameType
paramsLlmAnswerQuestionParams

Returns

Promise<OpenAiStreamingResponse>

Defined in

packages/mongodb-chatbot-server/src/services/ChatLlm.ts:147


callTool

callTool(params): Promise<CallToolResponse>

Parameters

NameType
paramsLlmCallToolParams

Returns

Promise<CallToolResponse>

Defined in

packages/mongodb-chatbot-server/src/services/ChatLlm.ts:153