Prompt Expander Agent • Rust AI Agent SDK
PromptExpanderAgent: Agent for expanding prompts
PromptExpanderAgent
Defined in the Specialized Agents module.
Rust AI Agent SDK
Agent for expanding prompts
Fields
| Name | Type | Description |
|---|---|---|
config | PromptExpanderConfig | – |
Methods
new
fn new() -> PromptExpanderAgentBuilderCreate a new builder
name
fn name(&self) -> &strGet agent name
model
fn model(&self) -> &strGet model
detect_strategy
fn detect_strategy(&self, prompt: &str) -> ExpandStrategyDetect the best expansion strategy for a prompt
Parameters:
| Name | Type |
|---|---|
prompt | &str |
expand_sync
fn expand_sync(
&self,
prompt: &str,
strategy: ExpandStrategy,
context: Option<&str>,
) -> ExpandResultExpand a prompt (sync placeholder – actual implementation would use LLM)
Parameters:
| Name | Type |
|---|---|
prompt | &str |
strategy | ExpandStrategy |
context | Option<&str> |
Source
View on GitHubpraisonai/src/specialized_agents.rs at line 280