agents.structured_output.models¶
Common structured output models for various agent patterns.
Classes¶
Structured analysis result. |
|
Structured critique of an output. |
|
Structured decision output. |
|
Extracted structured data. |
|
Structured improvement suggestions. |
|
User intent classification. |
|
Quality assessment result. |
|
Complete reflection analysis. |
|
Structured response. |
|
Structured search query. |
|
Structured search result. |
|
Structured summary. |
|
Result of task execution. |
|
Result of validation check. |
Module Contents¶
- class agents.structured_output.models.Analysis(/, **data)¶
Bases:
pydantic.BaseModelStructured analysis result.
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_output.models.Critique(/, **data)¶
Bases:
pydantic.BaseModelStructured critique of an output.
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_output.models.Decision(/, **data)¶
Bases:
pydantic.BaseModelStructured decision output.
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_output.models.ExtractedData(/, **data)¶
Bases:
pydantic.BaseModelExtracted structured data.
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_output.models.Improvement(/, **data)¶
Bases:
pydantic.BaseModelStructured improvement suggestions.
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_output.models.Intent(/, **data)¶
Bases:
pydantic.BaseModelUser intent classification.
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_output.models.QualityCheck(/, **data)¶
Bases:
pydantic.BaseModelQuality assessment result.
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_output.models.ReflectionResult(/, **data)¶
Bases:
pydantic.BaseModelComplete reflection analysis.
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_output.models.Response(/, **data)¶
Bases:
pydantic.BaseModelStructured response.
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_output.models.SearchQuery(/, **data)¶
Bases:
pydantic.BaseModelStructured search query.
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_output.models.SearchResult(/, **data)¶
Bases:
pydantic.BaseModelStructured search result.
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_output.models.Summary(/, **data)¶
Bases:
pydantic.BaseModelStructured summary.
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_output.models.TaskResult(/, **data)¶
Bases:
pydantic.BaseModelResult of task execution.
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_output.models.ValidationResult(/, **data)¶
Bases:
pydantic.BaseModelResult of validation check.
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)