agents • Rust AI Agent SDK
Specialized Agents Module
agents
Rust AI Agent SDK
Specialized Agents Module
This module provides specialized agent types for specific tasks:
AudioAgent– Text-to-speech and speech-to-textVideoAgent– Video generationImageAgent– Image generationOCRAgent– Optical character recognitionCodeAgent– Code generation and executionVisionAgent– Image analysis and understanding
Example
use praisonai::agents::{AudioAgent, AudioConfig};
let agent = AudioAgent::new()
.model("openai/tts-1")
.voice("alloy")
.build()?;
agent.speech("Hello world!", "output.mp3")?;Import
use praisonai::agents::*;Classes
Configuration for audio processing settings.
AudioAgentA specialized agent for audio processing using AI models. Provides Text-to-Speech (TTS) and Speech-to-Text (STT) capabilities.
AudioAgentBuilderBuilder for AudioAgent
ImageConfigConfiguration for image generation settings.
ImageAgentA specialized agent for generating images using AI models.
ImageResultResult of image generation
ImageAgentBuilderBuilder for ImageAgent
VideoConfigConfiguration for video generation settings.
VideoAgentA specialized agent for generating videos using AI models.
VideoResultResult of video generation
VideoAgentBuilderBuilder for VideoAgent
OCRConfigConfiguration for OCR settings.
OCRAgentA specialized agent for OCR (Optical Character Recognition).
OCRResultResult of OCR extraction
OCRPageA page of OCR results
OCRAgentBuilderBuilder for OCRAgent
CodeConfigConfiguration for code execution settings.
CodeAgentA specialized agent for code generation and execution.
CodeExecutionResultResult of code execution
CodeAgentBuilderBuilder for CodeAgent
VisionConfigConfiguration for vision processing settings.
VisionAgentA specialized agent for image analysis and understanding.
VisionAgentBuilderBuilder for VisionAgent
DeepResearchConfigConfiguration for deep research settings.
ResearchCitationCitation in a research result.
DeepResearchResultResult of deep research.
DeepResearchAgentAgent for deep research using specialized APIs.
DeepResearchAgentBuilderBuilder for DeepResearchAgent.
RealtimeConfigConfiguration for realtime voice settings.
RealtimeAgentAgent for real-time voice conversations.
RealtimeAgentBuilderBuilder for RealtimeAgent.
VideoStatusStatus of video generation