Skip to content

API Reference parrot.advisors.tools.criteria

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

parrot.advisors.tools.criteria

View source

ApplyCriteriaTool - Applies user's answer to filter products.

Class ApplyCriteriaArgs

Arguments for applying criteria from user's answer.

Attributes:

Attribute Type Description
question_id Optional[str]
user_response str
criteria_key Optional[str]
criteria_value Optional[Any]

Class ApplyCriteriaTool

Applies the user's answer to filter products and update selection state.

This tool:

  1. Parses the user's response to extract criteria
  2. Filters products based on the criteria
  3. Updates the selection state with new criteria
  4. Creates a Memento snapshot for undo capability

Use this after the user answers a question to narrow down products.

Attributes:

Attribute Type Description
name str
description str

Alias BaseAdvisorTool

Re-exported from parrot.advisors.tools.base.BaseAdvisorTool.

Alias ProductAdvisorToolArgs

Re-exported from parrot.advisors.tools.base.ProductAdvisorToolArgs.

Alias ToolResult

Re-exported from parrot.tools.abstract.ToolResult.

Alias infer_criteria_from_response

Re-exported from parrot.advisors.tools.utils.infer_criteria_from_response.

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