Skip to content

Overview / HookTypes

HookTypes

Properties

PropertyType
afterBootstrap(db: Readonly<objectOutputType<object, ZodTypeAny, "passthrough">>, cat: CheshireCat) => objectOutputType<object, ZodTypeAny, "passthrough">
afterInsertInMemory(doc: Document<Record<string, any>>, interaction: EmbedderInteraction, stray: StrayCat) => MaybePromise<Document<Record<string, any>>>
afterMemoryChain(output: AgentFastReply, stray: StrayCat) => MaybePromise<AgentFastReply>
afterModelInteraction(interaction: ModelInteraction, stray: StrayCat) => ModelInteraction
afterProceduresChain(output: AgentFastReply, stray: StrayCat) => MaybePromise<AgentFastReply>
afterRecallMemories(memory: BetterReadonly<WorkingMemory, true>, stray: StrayCat) => MaybePromise<BetterReadonly<WorkingMemory, true>>
afterSendMessage(msg: WSMessage, stray: StrayCat) => MaybePromise<WSMessage>
afterSplitDocs(docs: Document<Record<string, any>>[], stray: StrayCat) => MaybePromise<Document<Record<string, any>>[]>
afterStoreDocuments(docs: Document<Record<string, any>>[], stray: StrayCat) => MaybePromise<Document<Record<string, any>>[]>
agentFastReply(reply: Nullable<AgentFastReply>, stray: StrayCat) => MaybePromise<Nullable<AgentFastReply>>
agentPromptInstructions(prompt: string, stray: StrayCat) => MaybePromise<string>
agentPromptPrefix(prefix: string, stray: StrayCat) => MaybePromise<string>
agentPromptSuffix(suffix: string, stray: StrayCat) => MaybePromise<string>
allowedEmbedders(embedders: EmbedderConfig<ZodTypeAny>[], addEmbedder: <Config>(settings) => EmbedderConfig<Config>) => EmbedderConfig<any>[]
allowedLLMs(llms: ChatModelConfig<ZodTypeAny>[], addModel: <Config>(settings) => ChatModelConfig<Config>) => ChatModelConfig<any>[]
allowedTools(tools: string[], stray: StrayCat) => MaybePromise<string[]>
beforeAgentStarts(input: ContextInput, stray: StrayCat) => MaybePromise<ContextInput>
beforeBootstrap(db: Readonly<objectOutputType<object, ZodTypeAny, "passthrough">>) => objectOutputType<object, ZodTypeAny, "passthrough">
beforeInsertInMemory(doc: Document<Record<string, any>>, stray: StrayCat) => MaybePromise<Document<Record<string, any>>>
beforeReadMessage(msg: Message, stray: StrayCat) => MaybePromise<Message>
beforeRecallMemories(configs: MemoryRecallConfigs, stray: StrayCat) => MaybePromise<MemoryRecallConfigs>
beforeSendMessage(msg: MemoryMessage, stray: StrayCat) => MaybePromise<MemoryMessage>
beforeSplitDocs(texts: Document<Record<string, any>>[], stray: StrayCat) => MaybePromise<Document<Record<string, any>>[]>
beforeStoreDocuments(docs: Document<Record<string, any>>[], stray: StrayCat) => MaybePromise<Document<Record<string, any>>[]>
beforeStoreEpisodicMemory(doc: Document<Record<string, any>>, stray: StrayCat) => MaybePromise<Document<Record<string, any>>>
fileParsers(loaders: FileParsers) => FileParsers
instantToolTrigger(input: Nullable<`${string}{name}${string}`>, stray: StrayCat) => MaybePromise<Nullable<`${string}{name}${string}`>>
memoryCollections(collections: Record<string, VectorMemoryCollection>) => MaybePromise<Record<string, VectorMemoryCollection>>
recallQuery(query: string, stray: StrayCat) => MaybePromise<string>
textSplitter(splitter: TextSplitter) => TextSplitter
webParsers(loaders: WebParser[]) => WebParser[]

Released under the GPL-3.0 License.