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

Diagram

Input Data

Agent: PromptExpanderAgent

Output Result

Fields

NameTypeDescription
configPromptExpanderConfig–

Methods

new

rust
fn new() -> PromptExpanderAgentBuilder

Create a new builder

name

rust
fn name(&self) -> &str

Get agent name

model

rust
fn model(&self) -> &str

Get model

detect_strategy

rust
fn detect_strategy(&self, prompt: &str) -> ExpandStrategy

Detect the best expansion strategy for a prompt

Parameters:

NameType
prompt&str

expand_sync

rust
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


Related Documentation