Skip to main content

AddResult

Defined in the knowledge module.
Rust AI Agent SDK Result of adding content to knowledge store.

Fields

NameTypeDescription
idStringID of added item
successboolWhether operation succeeded
messageStringOptional message
metadataHashMap<StringMetadata

Methods

success

fn success(id: impl Into<String>) -> Self
Create a successful add result Parameters:
NameType
idimpl Into&lt;String&gt;

failure

fn failure(message: impl Into<String>) -> Self
Create a failed add result Parameters:
NameType
messageimpl Into&lt;String&gt;

Source

View on GitHub

praisonai/src/knowledge/mod.rs at line 192