Skip to main content

Interface: GenerateUserPromptFuncReturnValue

Properties

references

Optional references: { title: string ; url: string }[]

References returned with the LLM response

Defined in

packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts:53


rejectQuery

Optional rejectQuery: boolean

If true, no response should be generated with an LLM. Instead, return the staticResponse if set or otherwise respond with a standard static rejection response.

Defined in

packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts:43


staticResponse

Optional staticResponse: AssistantMessage

If defined, this message should be sent as a response instead of generating a response to the user query with the LLM.

Defined in

packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts:36


userMessage

userMessage: UserMessage

The (preprocessed) user message to insert into the conversation.

Defined in

packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts:48