feat: support pydantic models in tool uploads + patch dict/list types (#2112)

This commit is contained in:
Charles Packer
2024-11-30 10:09:03 -08:00
committed by GitHub
parent 58ec6238a8
commit 6be2000eda
26 changed files with 1173 additions and 53 deletions

View File

@@ -0,0 +1,37 @@
{
"name": "check_order_status",
"description": "Check the status for an order number (integer value).",
"parameters": {
"type": "object",
"properties": {
"order_number": {
"type": "integer",
"description": "The order number to check on."
},
"customer_name": {
"type": "string",
"description": "The name of the customer who placed the order."
},
"related_tickets": {
"type": "array",
"description": "A list of ticket numbers related to the order.",
"items": {
"type": "string"
}
},
"related_ticket_reasons": {
"type": "object",
"description": "A dictionary of reasons for the related tickets."
},
"severity": {
"type": "number",
"description": "The severity of the request (between 0 and 1)."
},
"metadata": {
"type": "object",
"description": "Additional metadata about the order."
}
},
"required": ["order_number", "customer_name", "related_tickets", "related_ticket_reasons", "severity"]
}
}