Skip to content

API Reference parrot_tools.breakeven

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

parrot_tools.breakeven

View source

BreakEvenAnalysisTool — threshold and root-finding analysis.

Finds the variable value where a target metric reaches a specified threshold. Uses scipy.optimize.brentq for root finding.

Alias AbstractTool

Re-exported from parrot_tools.abstract.AbstractTool.

Class BreakEvenAnalysisTool

Find threshold values for target metrics.

Answers 'how many kiosks do we need to cover the cost of 4 new warehouses?' using root-finding algorithms.

Parameter Type Default Description
**kwargs {}

Attributes:

Attribute Type Description
args_schema Type[BaseModel]

Class BreakEvenInput

Input schema for BreakEvenAnalysisTool.

Fields:

Field Type Default Description
df_name str Name or alias of the dataset
target_metric str Metric that must reach the threshold (e.g., 'ebitda')
target_value float 0.0 Target value for break-even (default: 0 for true break-even)
variable str Variable to solve for (e.g., 'kiosks')
variable_range Optional[List[float]] None Search range [min, max]. If None, uses 0 to 10x current value
fixed_changes Dict[str, float] Fixed changes to apply before solving (e.g., {'warehouses': 4})
derived_metrics List[DerivedMetric]

Alias DerivedMetric

Re-exported from parrot_tools.whatif.DerivedMetric.

Alias MetricsCalculator

Re-exported from parrot_tools.whatif.MetricsCalculator.

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