Skip to content

API Reference parrot_tools.pricestool

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

parrot_tools.pricestool

View source

Class ModelPriceInput

Fields:

Field Type Default Description
tenant str Program or tenant identifier (e.g. hisense, epson, etc).
model str Model number of the product to query the price for.
output_format str 'pandas' Output format: 'string' or 'structured'.
limit int Number of records to retrieve.

Class PriceInput

Fields:

Field Type Default Description
tenant str Program or tenant identifier (e.g. hisense, epson, etc).
model str Model number of the product to query the price for.
week int Week number for which to retrieve the price.
output_format str Output format: 'string' or 'structured'.

Class PriceOutput

Fields:

Field Type Default Description
product_id str Unique identifier for the product.
price float Price of the product.
week int Week number for which the price is applicable.
start_date date Start date of the pricing period.
end_date date End date of the pricing period.

Class PricesTool

Tool for querying product prices from a database or API.

Method PricesTool.get_model_price

Fetches the price of a product for a given tenant, model, and week.

get_model_price(tenant: str, model: str, week: int, output_format: str = 'structured') -> PriceOutput

Parameter Type Default Description
tenant str The program or tenant identifier.
model str The model number of the product.
week int The week number for which to retrieve the price.
output_format str 'structured'

Returns: PriceOutput

Method PricesTool.get_weekly_price

Fetches all product prices for a given tenant and week.

get_weekly_price(tenant: str, week: int, limit: int = 10, output_format: str = 'structured') -> List[PriceOutput]

Parameter Type Default Description
tenant str The program or tenant identifier.
week int The week number for which to retrieve the price.
limit int 10
output_format str 'structured'

Returns: List[PriceOutput]

Method PricesTool.get_price

Fetches all product prices for a given tenant and date range.

get_price(tenant: str, start_date: str, end_date: str, limit: int = 10, output_format: str = 'structured') -> List[PriceOutput]

Parameter Type Default Description
tenant str The program or tenant identifier.
start_date str
end_date str
limit int 10
output_format str 'structured'

Returns: List[PriceOutput]

Alias QueryToolkit

Re-exported from parrot_tools.querytoolkit.QueryToolkit.

Class TotalPriceInput

Fields:

Field Type Default Description
tenant str Program or tenant identifier (e.g. hisense, epson, etc).
start_date str Start date for the price query (YYYY-MM-DD).
end_date str End date for the price query (YYYY-MM-DD).
output_format str 'pandas' Output format: 'string' or 'structured'.
limit int Number of records to retrieve.

Class WeeklyPriceInput

Fields:

Field Type Default Description
tenant str Program or tenant identifier (e.g. hisense, epson, etc).
week int Week number for which to retrieve the price.
output_format str 'pandas' Output format: 'string' or 'structured'.
limit int Number of records to retrieve.

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