Overview / CheshireCat
CheshireCat
Accessors
agentManager
Get Signature
get agentManager():
AgentManager
Returns
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
vectorMemory
Get Signature
get vectorMemory():
VectorMemory
Returns
whiteRabbit
Get Signature
get whiteRabbit():
WhiteRabbit
Returns
Methods
addStray()
addStray(
userId
,ws
?):StrayCat
Add a StrayCat with the given userId to the collection of strays.
Parameters
Parameter | Type | Description |
---|---|---|
userId | string | The unique identifier of the stray cat. |
ws ? | ElysiaWS | - |
Returns
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
Parameter | Type | Description |
---|---|---|
userId | string | The 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
Parameter | Type | Description |
---|---|---|
userId | string | The 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