prebuilt.ai_insight.state¶

State schema for News Reporter System.

Classes¶

NewsReporterState

State for news reporting workflow.

Module Contents¶

class prebuilt.ai_insight.state.NewsReporterState(messages=None, **data)¶

Bases: haive.core.schema.prebuilt.messages.messages_state.MessagesState

State for news reporting workflow.

Initialize with optional messages parameter for compatibility.

Parameters:

messages (list[dict[str, Any]] | None)

property articles_found: int¶

Number of articles found.

Return type:

int

property articles_processed: int¶

Number of articles processed.

Return type:

int

property has_sufficient_content: bool¶

Check if we have enough content for a report.

Return type:

bool

property processing_time: float | None¶

Total processing time in seconds.

Return type:

Optional[float]

property topic: str¶

Get the search topic.

Return type:

str