Skip to content

API Reference parrot_tools.prophetforecast

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.prophetforecast

View source

ProphetForecastTool for time series forecasting using Facebook Prophet.

Alias AbstractTool

Re-exported from parrot_tools.abstract.AbstractTool.

Alias AbstractToolArgsSchema

Re-exported from parrot_tools.abstract.AbstractToolArgsSchema.

Class ProphetForecastArgs

Arguments for :class:ProphetForecastTool.

Attributes:

Attribute Type Description
dataframe str
ds_column str
y_column str
periods int
freq str
include_history bool

Method ProphetForecastArgs.validate_periods

validate_periods(value: int) -> int

Parameter Type Default Description
value int

Returns: int

Class ProphetForecastTool

Generate time series forecasts with Facebook Prophet and return plots.

Parameter Type Default Description
dataframes Optional[Dict[str, pd.DataFrame]] None DataFrames the tool can forecast, by name.
alias_map Optional[Dict[str, str]] None Name → alias map (df1, df2, …) accepted in place of names.
context_provider Optional[Callable[[], Tuple[Dict[str, pd.DataFrame], Dict[str, str]]]] None Optional callable returning (dataframes, alias_map) for the current call. When set it wins over the stored dataframes/alias_map; an agent shared by concurrent requests passes one so each forecast sees its own request's frames.
**kwargs Any {} Forwarded to :class:AbstractTool.

Attributes:

Attribute Type Description
dataframes Dict[str, pd.DataFrame]
alias_map Dict[str, str]
context_provider Optional[Callable[[], Tuple[Dict[str, pd.DataFrame], Dict[str, str]]]]

Method ProphetForecastTool.update_context

Update internal references to available DataFrames and aliases.

update_context(dataframes: Dict[str, pd.DataFrame], alias_map: Optional[Dict[str, str]] = None) -> None

Parameter Type Default Description
dataframes Dict[str, pd.DataFrame]
alias_map Optional[Dict[str, str]] None

Alias ToolResult

Re-exported from parrot_tools.abstract.ToolResult.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally