Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

AI & RAG methods

Methods for AI prompts, session history, semantic search, and knowledge-base document management. Requires aiEnabled on your plan.

Use transport: "http" for synchronous request/response. WebSocket transport is supported but replies arrive asynchronously on onMessage.

Methods

Method
Server code
Category

sendAI()

300

AI prompt

fetchAIHistory()

301

AI history

deleteAIHistoryMessage()

302

Delete AI message

search()

303

Semantic search

addDocument()

306

Knowledge base

updateDocument()

307

Knowledge base

deleteDocument()

308

Knowledge base

listDocuments()

309

Knowledge base

getDocument()

310

Knowledge base

sendWithOpenAI()

300

Deprecated

Session logging

When logs: true in the constructor, sendAI() reports session start, completion, and token usage to the DNotifier dashboard.

Multi-model providers

Optional provider / model on sendAI (and on agents). Wire keys and endpoints in the portal first.

See multi-model providers.

Language pages

Vector store and embedding

search and the knowledge-base methods accept vectorStore, embedding, and serverConfig. Set serverConfig on the client to reuse one store and one embedding model. A value on the call overrides it for that call.

See Vector stores and embeddings.

Last updated