understand_query
Turn a natural-language query into an inspectable search plan of keywords, filters, sort, and synonyms, using only the catalog's available vocabulary.
Instructions
Turn a natural-language query into a structured search plan, without searching.
Uses Bedrock to split a shopper's phrasing into keywords, structured
filters, a sort, and synonyms — restricted to the vocabulary the target
catalog actually exposes. Use this when you want to inspect or adjust
the plan before running it; use smart_search to do both at once.
Args: query: The user's request, in their own words. api: Which catalog's vocabulary to plan against. Optional when only one is configured.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api | No | ||
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api | Yes | ||
| plan | Yes | ||
| model_id | Yes | ||
| original_query | Yes |