describe • AI Agent SDK

describe: Generate a detailed description of an image.

describe

Method

</div>

This is a method of the VisionAgent class in the vision_agent module.

Generate a detailed description of an image.

Signature

python
def describe(image: str, detail: Optional[str], model: Optional[str]) -> str

Parameters

ParamField str

Image URL or local file path

ParamField Optional[str]

Detail level (low, high, auto)

ParamField Optional[str]

Override model for this call **kwargs: Additional parameters

Returns

ResponseField str

Detailed description text

Usage

python
agent = VisionAgent()
    description = agent.describe("photo.jpg")
    print(description)

Uses

  • analyze

Source

View on GitHub

praisonaiagents/agent/vision_agent.py at line 265