class Clothing(BaseModel):
"""Data model for clothing items"""
name: str
product_id: int
price: float
class ClothingList(BaseModel):
"""A list of clothing items for the model to use"""
cloths: List[Clothing]
using openai agent :=== Calling Function ===
Calling function: inventory_query_engine_tool with args: {"input": "lightweight, short-sleeved linen shirt in a pastel color, such as a soft blue or mint green, for men"}
Got output: Error: 1 validation error for ClothingList
cloths
Field required [type=missing, input_value={}, input_type=dict]
For further information visit
https://errors.pydantic.dev/2.7/v/missing========================
=== Calling Function ===
Calling function: inventory_query_engine_tool with args: {"input": "tailored chino shorts in a neutral color like beige or light grey for men"}
Got output: Error: 1 validation error for ClothingList
cloths
Field required [type=missing, input_value={}, input_type=dict]
For further information visit
https://errors.pydantic.dev/2.7/v/missing========================
=== Calling Function ===
Calling function: inventory_query_engine_tool with args: {"input": "comfortable loafers or espadrilles for men"}
Got output: Error: 1 validation error for ClothingList
cloths
Field required [type=missing, input_value={}, input_type=dict]
For further information visit
https://errors.pydantic.dev/2.7/v/missing========================