Skip to main content

analyze

Method
This is a method of the VisionAgent class in the vision_agent module.
Analyze an image and return analysis.

Signature

def analyze(image: str, prompt: Optional[str], detail: Optional[str], model: Optional[str]) -> str

Parameters

image
str
required
Image URL or local file path
prompt
Optional
Custom prompt for analysis (default: general analysis)
detail
Optional
Detail level (low, high, auto)
model
Optional
Override model for this call **kwargs: Additional provider-specific parameters

Returns

Returns
str
Analysis text

Usage

agent = VisionAgent()
    result = agent.analyze(
        "https://example.com/chart.png",
        prompt="What trends does this chart show?"
    )