Interface: CallToolResponse
Properties
references
• Optional
references: { metadata?
: objectOutputType
<{ sourceName
: ZodOptional
<ZodString
> ; sourceType
: ZodOptional
<ZodString
> ; tags
: ZodOptional
<ZodArray
<ZodString
, "many"
>> }, ZodTypeAny
, "passthrough"
> ; title
: string
; url
: string
}[]
References to add to the AssistantMessage sent to the user.
Defined in
packages/mongodb-rag-core/src/llm/ChatLlm.ts:106
rejectUserQuery
• Optional
rejectUserQuery: boolean
If true
, the user query should be rejected.
You can use this to short circuit the conversation,
and return the ConversationConstants.NO_RELEVANT_CONTENT message.
Defined in
packages/mongodb-rag-core/src/llm/ChatLlm.ts:101
toolCallMessage
• toolCallMessage: ChatCompletionMessageParam
& { content
: null
| string
; embedding?
: number
[] ; role
: OpenAiMessageRole
}
Message to add to the conversation.