Skip to content

Overview / CheshireCat

CheshireCat ​

Accessors ​

agentManager ​

Get Signature ​

get agentManager(): AgentManager

Returns ​

AgentManager


currentEmbedder ​

Get Signature ​

get currentEmbedder(): Embeddings

Returns ​

Embeddings


currentLLM ​

Get Signature ​

get currentLLM(): BaseChatModel

Returns ​

BaseChatModel


embedderSize ​

Get Signature ​

get embedderSize(): number

Returns ​

number


rabbitHole ​

Get Signature ​

get rabbitHole(): RabbitHole

Returns ​

RabbitHole


vectorMemory ​

Get Signature ​

get vectorMemory(): VectorMemory

Returns ​

VectorMemory


whiteRabbit ​

Get Signature ​

get whiteRabbit(): WhiteRabbit

Returns ​

WhiteRabbit

Methods ​

addStray() ​

addStray(userId, ws?): StrayCat

Add a StrayCat with the given userId to the collection of strays.

Parameters ​

ParameterTypeDescription
userIdstringThe unique identifier of the stray cat.
ws?ElysiaWS-

Returns ​

StrayCat

The StrayCat instance associated with the given userId.


embedProcedures() ​

embedProcedures(): Promise<void>

Embed tools and forms into the memory.

Returns ​

Promise<void>


getStray() ​

getStray(userId): undefined | StrayCat

Get the StrayCat instance associated with the given userId.

Parameters ​

ParameterTypeDescription
userIdstringThe unique identifier of the stray cat.

Returns ​

undefined | StrayCat

The StrayCat instance associated with the given userId.


loadMemory() ​

loadMemory(): Promise<void>

Loads the long term memory from the database.

Returns ​

Promise<void>


loadNaturalLanguage() ​

loadNaturalLanguage(): void

Load the Large Language Model (LLM) and the Embedder from the database. If the selected LLM or Embedder is not found, it falls back to the default one.

Returns ​

void


removeStray() ​

removeStray(userId): boolean

Removes a stray instance for the specified user from the collection.

Parameters ​

ParameterTypeDescription
userIdstringThe ID of the user to remove.

Returns ​

boolean

True if the user was successfully removed, false otherwise.


getInstance() ​

static getInstance(): Promise<CheshireCat>

Get the Cheshire Cat instance

Returns ​

Promise<CheshireCat>

The Cheshire Cat class as a singleton

Released under the GPL-3.0 License.