Expand Strategy • Rust AI Agent SDK
ExpandStrategy: Expansion strategy for prompts
ExpandStrategy
Defined in the Specialized Agents module.
Rust AI Agent SDK
Expansion strategy for prompts
Fields
| Name | Type | Description |
|---|---|---|
Basic | variant | – |
expansion | variant | – |
with | variant | – |
minimal | variant | – |
additions | variant | – |
Basic | variant | Basic expansion with minimal additions |
Detailed | variant | – |
expansion | variant | – |
with | variant | – |
comprehensive | variant | – |
context | variant | – |
Detailed | variant | Detailed expansion with comprehensive context |
Structured | variant | – |
expansion | variant | – |
with | variant | – |
clear | variant | – |
sections | variant | – |
Structured | variant | Structured expansion with clear sections |
Creative | variant | – |
expansion | variant | – |
with | variant | – |
imaginative | variant | – |
elements | variant | – |
Creative | variant | Creative expansion with imaginative elements |
Auto | variant | – |
detect | variant | – |
best | variant | – |
strategy | variant | – |
based | variant | – |
on | variant | – |
prompt | variant | – |
default | variant | Auto-detect best strategy based on prompt |
Auto | variant | Auto-detect best strategy based on prompt |
Methods
all
fn all() -> Vec<ExpandStrategy>Get all available strategies
from_str
fn from_str(s: &str) -> Option<Self>Parse from string
Parameters:
| Name | Type |
|---|---|
s | &str |
Source
View on GitHubpraisonai/src/specialized_agents.rs at line 0