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.
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
input["Input Data"] --> agent["Agent: VisionAgent"]
agent --> output["Output Result"]
style agent fill:#8B0000,color:#fff
style input fill:#8B0000,color:#fff
style output fill:#8B0000,color:#fffFields
| Name | Type | Description |
|---|---|---|
name | String | Agent name |
model | String | LLM model (e.g., “gpt-4o”, “claude-3-5-sonnet”) |
config | VisionConfig | Vision configuration |
verbose | bool | Verbose output |
Methods
new
fn new() -> VisionAgentBuilderCreate a new VisionAgent builder
name
fn name(&self) -> &strGet agent name
describe
fn describe(&self, image_source: &str) -> Result<String>Describe an image (placeholder)
Parameters:
| Name | Type |
|---|---|
image_source | &str |
analyze
fn analyze(&self, image_source: &str, prompt: &str) -> Result<String>Analyze an image with a custom prompt (placeholder)
Parameters:
| Name | Type |
|---|---|
image_source | &str |
prompt | &str |
compare
fn compare(&self, images: &[&str]) -> Result<String>Compare multiple images (placeholder)
Parameters:
| Name | Type |
|---|---|
images | &[&str] |
Source
View on GitHubpraisonai/src/agents/mod.rs at line 945