Skip to content

API Reference parrot_tools.calculator.tool

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

parrot_tools.calculator.tool

View source

Class CalculatorArgs

Arguments for calculator operations.

Fields:

Field Type Default Description
operation str Operation to perform (e.g., 'mean', 'std', 'correlation', 'derivative')
values Optional[List[float]] None List of numerical values for statistical operations
x Optional[float] None First operand or x value
y Optional[float] None Second operand or y value
expression Optional[str] None Mathematical expression for evaluation
params Optional[Dict[str, Any]] Additional parameters for specific operations

Class CalculatorTool

Advanced calculator tool with dynamically loaded operations.

Supports mathematical, statistical, and scientific computations by loading operation functions from the operations/ folder.

Parameter Type Default Description
**kwargs {}

Attributes:

Attribute Type Description
operations Dict[str, Callable]

Method CalculatorTool.list_operations

List all available operations.

list_operations() -> List[str]

Returns: List[str]

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