prebuilt.ai_insight.models¶
Models for General News Reporter System.
Classes¶
Represents a news article. |
|
Summary of an article. |
|
Category for organizing news. |
|
Complete news report. |
|
Configuration for news search. |
|
Configuration for report generation. |
|
Metadata for the news report. |
|
Configuration for summary generation. |
Module Contents¶
- class prebuilt.ai_insight.models.Article(/, **data)¶
Bases:
pydantic.BaseModelRepresents a news article.
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 prebuilt.ai_insight.models.ArticleSummary(/, **data)¶
Bases:
pydantic.BaseModelSummary of an article.
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 prebuilt.ai_insight.models.NewsCategory(/, **data)¶
Bases:
pydantic.BaseModelCategory for organizing news.
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 prebuilt.ai_insight.models.NewsReport(/, **data)¶
Bases:
pydantic.BaseModelComplete news report.
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 prebuilt.ai_insight.models.NewsSearchConfig(/, **data)¶
Bases:
pydantic.BaseModelConfiguration for news search.
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 prebuilt.ai_insight.models.ReportConfig(/, **data)¶
Bases:
pydantic.BaseModelConfiguration for report generation.
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 prebuilt.ai_insight.models.ReportMetadata(/, **data)¶
Bases:
pydantic.BaseModelMetadata for the news report.
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 prebuilt.ai_insight.models.SummaryStyle(/, **data)¶
Bases:
pydantic.BaseModelConfiguration for summary generation.
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)