agents.structured.modelsΒΆ
Pydantic models for structured output agents.
This module defines the common output models used by structured agents for converting unstructured text into organized data.
ClassesΒΆ
Structured output for analysis tasks. |
|
Structured output for decision-making content. |
|
Generic structured output model for any content. |
|
Structured output for task-related content. |
Module ContentsΒΆ
- class agents.structured.models.AnalysisOutput(/, **data)ΒΆ
Bases:
pydantic.BaseModel
Structured output for analysis tasks.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)
- class agents.structured.models.DecisionOutput(/, **data)ΒΆ
Bases:
pydantic.BaseModel
Structured output for decision-making content.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)
- class agents.structured.models.GenericStructuredOutput(/, **data)ΒΆ
Bases:
pydantic.BaseModel
Generic structured output model for any content.
This model provides a flexible structure that can capture the essence of most text outputs in an organized way.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)
- class agents.structured.models.TaskOutput(/, **data)ΒΆ
Bases:
pydantic.BaseModel
Structured output for task-related content.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)