plano/tests/rest/hurl/usps_shipping_tool.py

66 lines
2 KiB
Python
Raw Permalink Normal View History

2025-03-18 13:32:01 -07:00
tools = [
{
"name": "verify_address",
"description": "Verify the address",
"parameters": {
"type": "object",
"properties": {
2025-03-19 17:04:46 -07:00
"address": {"type": "str", "description": "The address to verify"}
2025-03-18 13:32:01 -07:00
},
"required": ["address"],
},
},
{
"name": "track_shipment",
"description": "Track the shipment",
"parameters": {
"type": "object",
"properties": {
"tracking_number": {
2025-03-19 17:04:46 -07:00
"type": "str",
2025-03-18 13:32:01 -07:00
"description": "The tracking number",
}
},
"required": ["tracking_number"],
},
},
{
"name": "generate_label",
"description": "Generate the shipping label",
"parameters": {
"type": "object",
"properties": {
2025-03-19 17:04:46 -07:00
"sender": {"type": "str", "description": "The address to ship from"},
2025-03-18 13:32:01 -07:00
"recipient": {
2025-03-19 17:04:46 -07:00
"type": "str",
2025-03-18 13:32:01 -07:00
"description": "The address to ship to",
},
"weight": {
2025-03-19 17:04:46 -07:00
"type": "int",
2025-03-18 13:32:01 -07:00
"description": "The weight of the package",
},
},
"required": ["sender", "recipient", "weight"],
},
},
{
"name": "calculate_shipping_rate",
"description": "Calculate the shipping rate",
"parameters": {
"type": "object",
"properties": {
2025-03-19 17:04:46 -07:00
"sender": {"type": "str", "description": "The address to ship from"},
2025-03-18 13:32:01 -07:00
"recipient": {
2025-03-19 17:04:46 -07:00
"type": "str",
2025-03-18 13:32:01 -07:00
"description": "The address to ship to",
},
"weight": {
2025-03-19 17:04:46 -07:00
"type": "int",
2025-03-18 13:32:01 -07:00
"description": "The weight of the package",
},
},
"required": ["sender", "recipient", "weight"],
},
},
]