Skip to main content

add

AsyncMethod
This is a method of the KnowledgeStoreProtocol class in the knowledge module.
Add content to the store

Signature

async def add(
        &mut self,
        content: &str,
        user_id: Option<&str>,
        agent_id: Option<&str>,
        metadata: Option<HashMap<String, String>>,
    ) -> Result<AddResult>

Parameters

content
&str
required
No description available.
user_id
Option<&str>
required
No description available.
agent_id
Option<&str>
required
No description available.
metadata
Option<HashMap<String
required
No description available.

Returns

Returns
Result<AddResult>
The result of the operation.