Skip to main content

PromptExpanderAgent

Defined in the Specialized Agents module.
Rust AI Agent SDK Agent for expanding prompts

Fields

NameTypeDescription
configPromptExpanderConfig-

Methods

new

fn new() -> PromptExpanderAgentBuilder
Create a new builder

name

fn name(&self) -> &str
Get agent name

model

fn model(&self) -> &str
Get model

detect_strategy

fn detect_strategy(&self, prompt: &str) -> ExpandStrategy
Detect the best expansion strategy for a prompt Parameters:
NameType
prompt&str

expand_sync

fn expand_sync(
        &self,
        prompt: &str,
        strategy: ExpandStrategy,
        context: Option<&str>,
    ) -> ExpandResult
Expand a prompt (sync placeholder - actual implementation would use LLM) Parameters:
NameType
prompt&str
strategyExpandStrategy
contextOption&lt;&str&gt;

Source

View on GitHub

praisonai/src/specialized_agents.rs at line 280