Vision Agent • Rust AI Agent SDK

VisionAgent: A specialized agent for image analysis and understanding.

VisionAgent

Defined in the agents module.

Rust AI Agent SDK

A specialized agent for image analysis and understanding.

Diagram

Input Data

Agent: VisionAgent

Output Result

Fields

NameTypeDescription
nameStringAgent name
modelStringLLM model (e.g., “gpt-4o”, “claude-3-5-sonnet”)
configVisionConfigVision configuration
verboseboolVerbose output

Methods

new

rust
fn new() -> VisionAgentBuilder

Create a new VisionAgent builder

name

rust
fn name(&self) -> &str

Get agent name

describe

rust
fn describe(&self, image_source: &str) -> Result<String>

Describe an image (placeholder)

Parameters:

NameType
image_source&str

analyze

rust
fn analyze(&self, image_source: &str, prompt: &str) -> Result<String>

Analyze an image with a custom prompt (placeholder)

Parameters:

NameType
image_source&str
prompt&str

compare

rust
fn compare(&self, images: &[&str]) -> Result<String>

Compare multiple images (placeholder)

Parameters:

NameType
images&[&str]

Source

View on GitHub

praisonai/src/agents/mod.rs at line 945


Related Documentation