Skip to content

API Reference

Namespaces

NamespaceDescription
NodeJS-

Enumerations

EnumerationDescription
FormState-

Classes

ClassDescription
AgentManagerManager of Langchain Agent. This class manages the Agent that uses the LLM. It takes care of formatting the prompt and filtering the tools before feeding them to the Agent. It also instantiates the Langchain Agent.
ChatModelConfig-
CheshireCat-
CustomChat-
CustomChatOllama-
CustomChatOpenAI-
CustomOpenAIEmbeddings-
Database-
EmbedderConfig-
FakeChat-
FastEmbedEmbeddings-
Form-
HttpError-
MadHatter-
ModelInteractionHandler-
NewTokenHandler-
Plugin-
ProceduresOutputParser-
RabbitHole-
RateLimitHandler-
StrayCatThe stray cat goes around tools and hook, making troubles
Tool-
ToolPromptTemplate-
VectorMemory-
VectorMemoryCollection-
WhiteRabbit-

Interfaces

InterfaceDescription
AgentFastReplyThe agent reply configuration.
ContextInputThe context input for the agent.
HookTypes-
Interaction-
IntermediateStepThe intermediate step of the agent.
MemoryJsonThe accepted JSON format for an imported memory.
MemoryMessageThe content of a memory message.
MemoryRecallConfigThe configuration for memory recall.
MemoryRecallConfigsThe configurations for each memory recall.
MessageA message object sent by the user.
VectorMemoryCollectionsThe configurations for each vector memory.
VectorMemoryConfigThe configuration of a vector memory.
WorkingMemoryThe working memory of the cat.

Type Aliases

Type aliasDescription
BetterReadonly-
DatabaseConfig-
EmbeddedVector-
EmbedderInteraction-
FileParsers-
Filter-
FilterCondition-
FilterMatch-
Hook-
HookNames-
Hooks-
InstantToolTrigger-
Json-
LLMInteraction-
MaybePromise-
MemoryDocumentA memory document.
ModelInteraction-
Nullable-
PointData-
Primitive-
TODO-
WebParser-
WS-
WSMessageA message object sent by the websocket.

Variables

VariableDescription
app-
CatForm-
CatHook-
catPathsIt contains various paths and URLs used in the application.
CatPlugin-
CatTool-
chatMessage-
cheshireCat-
db-
embedderRoutes-
generalRoutes-
httpError-
httpLogger-
llmRoutes-
logThe logger module provides various logging functions.
LogLevel-
madHatter-
memoryMessage-
memoryRecall-
memoryRoutes-
messageInput-
modelInfo-
parsedEnvThe parsed environment variables.
pluginInfo-
pluginManifest-
pluginSettings-
pluginsRoutes-
rabbitHoleManages content ingestion. I'm late... I'm late!
rabbitHoleRoutes-
serverContext-
settingsRoutes-
swaggerTags-
vectorDb-
whiteRabbitI'm late, I'm late, for a very important date!
zodBooleanA Zod schema for fixing coercion of boolean value.
zodJsonA Zod schema for JSON objects.
zodPrimitiveA Zod schema for primitive values.

Functions

FunctionDescription
addChatModel-
addEmbeddings-
catchErrorCatches errors from a promise.
compareStringsCompares two strings using an evaluator.
deepDefaultsMerges the properties of the source objects into the target object, recursively applying defaults.
embedderCache-
existsDirChecks if a directory exists.
getAllowedEmbedders-
getAllowedLLMs-
getEmbedder-
getEmbedderSettings-
getLLM-
getLLMSettings-
getVectorMemory-
getZodDefaultsRetrieves the default values for a given Zod schema.
isForm-
isHook-
isTool-
llmCache-
logWelcomeLogs a welcome message and prints important URLs.
normalizeMessageChunksNormalizes the content of a message chunk.
parseJsonParses a JSON string using the specified Zod schema. It also cleans a few common issues with generated JSON strings.

Released under the GPL-3.0 License.