Skip to content

Conversation

@Vanshmo-sher
Copy link

First PR.
Added New sdk python code

@@ -0,0 +1,73 @@
# Trademo Shipments and Tariff Tool
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the title, please just use the tool name. I would recommend "Trademo" or "Trademo Shipments and Tariff"

This Python script demonstrates how to use Azure AI to create an agent that queries global trade duties using an OpenAPI specification.

## About Tool:
- Name: Trademo_Shipments_And_Tariff
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the description we received earlier, could you please update to this one?
Provides latest duties and past shipment data for trade between multiple countries

This Python script demonstrates how to use Azure AI to create an agent that queries global trade duties using an OpenAPI specification.

## About Tool:
- Name: Trademo_Shipments_And_Tariff
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When we update the tool name in blog or ux, wont have "_"between words


Set this environment variables with your own values:
PROJECT_ENDPOINT - the Azure AI Project endpoint, as found in your Foundry Project.
PROJECT_OPENAPI_CONNECTION_NAME - the connection name for the OpenAPI connection authentication
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you will need either connection name or the connection id, dont need both

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the new code makes use of connection id, hence I removed connection name.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you dont have to include the logo file in this PR since we got the approval and the logo through email

run_steps = project_client.agents.run_steps.list(thread_id=thread.id, run_id=run.id)

# Loop through each step to display information
for step in run_steps.data:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this line should be:
for step in run_steps:

@lindazqli lindazqli merged commit 9c3ea2f into azure-ai-foundry:main May 14, 2025
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants