You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Obtain the sessionid from trademo which serves as the API_KEY.
43
+
44
+
Set up a custom key connection, name the key as 'sessionid' and save the connection name.
45
+
46
+
Save that connection name as the PROJECT_OPENAPI_CONNECTION_NAME environment variable
47
+
48
+
49
+
Set this environment variables with your own values:
50
+
PROJECT_ENDPOINT - the Azure AI Project endpoint, as found in your Foundry Project.
51
+
MODEL - name of the model deployment in the project to use Agents against
52
+
CONNECTION_ID - The ID of connection(connection id should be in the format "/subscriptions/<sub-id>/resourceGroups/<your-rg-name>/providers/Microsoft.CognitiveServices/accounts/<your-ai-services-name>/projects/<your-project-name>/connections/<your-connection-name>")
53
+
54
+
55
+
## Example queries processed by the tool:
56
+
- "How many GPUs(HS code 847330) were imported to United States from China in February 2025?"
57
+
- "which were the top countries based on shipment value that exported jewellery(HS code 711319) to usa in 2024?"
58
+
- "Which countries are the biggest exporter of lithium ion battery(HS code 850760) to the US in 2024?"
59
+
- "what is the duty of import for jewllery(HS code = 711319) from India to US?"
60
+
- "Compare current duties on lithium ion batteries(HS code 850760) imported to US"
61
+
62
+
## Notes
63
+
- The script creates and deletes the agent during execution
64
+
- OpenAPI connection requires additional setup in Azure
65
+
- The agent assumes HS 6-digit codes for products automatically
66
+
- Error handling is included for failed runs
67
+
68
+
69
+
## Contact
70
+
For any queries, please follow the below escalation matrix:
"description": "Bad Request - Missing or invalid parameters in the payload",
86
+
"content": {
87
+
"application/json": {
88
+
"schema": {
89
+
"$ref": "#/components/schemas/ErrorResponse400"
90
+
},
91
+
"example": {
92
+
"status": "failure",
93
+
"message": "Missing parameter tradeTimePeriod->>fromDate in payload."
94
+
}
95
+
}
96
+
}
97
+
},
98
+
"401": {
99
+
"description": "Unauthorized - Invalid or missing Session ID (API Key)",
100
+
"content": {
101
+
"application/json": {
102
+
"schema": {
103
+
"$ref": "#/components/schemas/ErrorResponse401"
104
+
},
105
+
"example": {
106
+
"status": "FAILED",
107
+
"message": "Session ID Not Found"
108
+
}
109
+
}
110
+
}
111
+
}
112
+
}
113
+
}
114
+
}
115
+
},
116
+
"components": {
117
+
"schemas": {
118
+
"CommodityRequest": {
119
+
"type": "object",
120
+
"required": [
121
+
"hsCode",
122
+
"importingCountry",
123
+
"exportingCountry",
124
+
"tradeTimePeriod"
125
+
],
126
+
"properties": {
127
+
"hsCode": {
128
+
"type": "string",
129
+
"description": "SIX digit only Harmonized System (HS) code for the commodity. Sometimes the user will directly provide the HS code, and sometimes it will be derived from the product name.",
130
+
"example": "220820"
131
+
},
132
+
"importingCountry": {
133
+
"type": "string",
134
+
"description": "The country importing the commodity. This should be in lowercase and should always be the full name of the countries and not the abberiviation.",
"description": "The country exporting the commodity. This should be in lowercase and should always be the full name of the countries and not the abberiviation.",
0 commit comments