plano/tests/rest/hurl/usps_shipping_tool.py
2025-03-19 17:05:10 -07:00

65 lines
2 KiB
Python

tools = [
{
"name": "verify_address",
"description": "Verify the address",
"parameters": {
"type": "object",
"properties": {
"address": {"type": "str", "description": "The address to verify"}
},
"required": ["address"],
},
},
{
"name": "track_shipment",
"description": "Track the shipment",
"parameters": {
"type": "object",
"properties": {
"tracking_number": {
"type": "str",
"description": "The tracking number",
}
},
"required": ["tracking_number"],
},
},
{
"name": "generate_label",
"description": "Generate the shipping label",
"parameters": {
"type": "object",
"properties": {
"sender": {"type": "str", "description": "The address to ship from"},
"recipient": {
"type": "str",
"description": "The address to ship to",
},
"weight": {
"type": "int",
"description": "The weight of the package",
},
},
"required": ["sender", "recipient", "weight"],
},
},
{
"name": "calculate_shipping_rate",
"description": "Calculate the shipping rate",
"parameters": {
"type": "object",
"properties": {
"sender": {"type": "str", "description": "The address to ship from"},
"recipient": {
"type": "str",
"description": "The address to ship to",
},
"weight": {
"type": "int",
"description": "The weight of the package",
},
},
"required": ["sender", "recipient", "weight"],
},
},
]