The InstructorTextAgent
is designed to process text inputs and extract structured data.
InstructorTextAgent
is initialized with two arguments:
BaseModel
from the pydantic
library."gpt-4o"
.You can find a comprehensive list of all OpenAI API models here.Workflow
is expected to have some sort of text input that needs to be processed.
InstructorTextAgent
as part of a Workflow
for counting vehicles.
Step 1. Define a response_model
.
InstructorTextAgent
.