The InstructorImageAgent
is designed to process images and extract structured data.
InstructorImageAgent
is initialized with two arguments:
BaseModel
from the pydantic
library."gpt-4o"
.You can find a comprehensive list of all OpenAI API models here.InstructorImageAgent
designed for a Workflow to detect if workers are wearing personal protective equipment (PPE).
Step 1. Define a response_model
.
hardhat
that is a boolean, indicating whether a hardhat is present or not.
Step 2. Use InstructorImageAgent
.