SearchResult
Defined in the knowledge module.Rust AI Agent SDK Container for search results.
Fields
| Name | Type | Description |
|---|---|---|
results | Vec<SearchResultItem> | List of result items |
metadata | HashMap<String | Search metadata |
query | String | Original query |
total_count | Option<usize> | Total count (may differ from results.len() if paginated) |
Methods
new
| Name | Type |
|---|---|
query | impl Into<String> |
results | Vec<SearchResultItem> |
is_empty
len
Source
View on GitHub
praisonai/src/knowledge/mod.rs at line 145
