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.
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() -> PromptExpanderAgentBuilder
Create a new builder
name
Get agent name
model
Get model
detect_strategy
fn detect_strategy(&self, prompt: &str) -> ExpandStrategy
Detect the best expansion strategy for a prompt
Parameters:
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:
| Name | Type |
|---|
prompt | &str |
strategy | ExpandStrategy |
context | Option<&str> |
Source
View on GitHub
praisonai/src/specialized_agents.rs at line 280