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.
ExpandResult
Defined in the Specialized Agents module.
Rust AI Agent SDK
Result of prompt expansion
Fields
| Name | Type | Description |
|---|
original_prompt | String | Original prompt |
expanded_prompt | String | Expanded prompt |
strategy_used | ExpandStrategy | Strategy used for expansion |
metadata | HashMap<String | Additional metadata |
serde_json | :Value> | Additional metadata |
Methods
new
fn new(
original: impl Into<String>,
expanded: impl Into<String>,
strategy: ExpandStrategy,
) -> Self
Create a new expand result
Parameters:
| Name | Type |
|---|
original | impl Into<String> |
expanded | impl Into<String> |
strategy | ExpandStrategy |
fn with_metadata(mut self, key: impl Into<String>, value: impl Into<serde_json::Value>) -> Self
Add metadata
Parameters:
| Name | Type |
|---|
key | impl Into<String> |
value | impl Into<serde_json::Value> |
expansion_ratio
fn expansion_ratio(&self) -> f64
Get expansion ratio (expanded length / original length)
Source
View on GitHub
praisonai/src/specialized_agents.rs at line 83