Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
AddResult
Defined in the knowledge module.
Rust AI Agent SDK
Result of adding content to knowledge store.
Fields
| Name | Type | Description |
|---|
id | String | ID of added item |
success | bool | Whether operation succeeded |
message | String | Optional message |
metadata | HashMap<String | Metadata |
Methods
success
fn success(id: impl Into<String>) -> Self
Create a successful add result
Parameters:
| Name | Type |
|---|
id | impl Into<String> |
failure
fn failure(message: impl Into<String>) -> Self
Create a failed add result
Parameters:
| Name | Type |
|---|
message | impl Into<String> |
Source
View on GitHub
praisonai/src/knowledge/mod.rs at line 192