Add Result • Rust AI Agent SDK
AddResult: Result of adding content to knowledge store.
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>) -> SelfCreate a successful add result
Parameters:
| Name | Type |
|---|---|
id | impl Into<String> |
failure
fn failure(message: impl Into<String>) -> SelfCreate a failed add result
Parameters:
| Name | Type |
|---|---|
message | impl Into<String> |
Source
View on GitHubpraisonai/src/knowledge/mod.rs at line 192