Specialized Agents • Rust AI Agent SDK

Specialized agents for PraisonAI

specialized_agents

Rust AI Agent SDK

Specialized agents for PraisonAI

This module provides specialized agent types matching the Python SDK:

  • PromptExpanderAgent: Expands short prompts into detailed, comprehensive prompts
  • QueryRewriterAgent: Transforms queries to improve retrieval quality in RAG

Example

rust,ignore
use praisonai::specialized_agents::{PromptExpanderAgent, ExpandStrategy};

let expander = PromptExpanderAgent::new()
.model("gpt-4o-mini")
.build();

let result = expander.expand("Write a blog post", ExpandStrategy::Detailed, None).await?;
println!("Expanded: {}", result.expanded_prompt);

Import

rust
use praisonai::specialized_agents::*;

Classes


Related Documentation