Interface: ChatLlm
LLM that responds to user queries. Provides both streaming and awaited options.
Methods
answerQuestionAwaited
▸ answerQuestionAwaited(params
): Promise
<ChatRequestAssistantMessage
>
Parameters
Name | Type |
---|---|
params | LlmAnswerQuestionParams |
Returns
Promise
<ChatRequestAssistantMessage
>
Defined in
packages/mongodb-chatbot-server/src/services/ChatLlm.ts:150
answerQuestionStream
▸ answerQuestionStream(params
): Promise
<OpenAiStreamingResponse
>
Parameters
Name | Type |
---|---|
params | LlmAnswerQuestionParams |
Returns
Promise
<OpenAiStreamingResponse
>
Defined in
packages/mongodb-chatbot-server/src/services/ChatLlm.ts:147
callTool
▸ callTool(params
): Promise
<CallToolResponse
>
Parameters
Name | Type |
---|---|
params | LlmCallToolParams |
Returns
Promise
<CallToolResponse
>