Skip to content

Add hosted agent creation samples and update utilities#46932

Merged
howieleung merged 5 commits into
feature/azure-ai-projects/2.2.0from
howie/create-from-code
May 16, 2026
Merged

Add hosted agent creation samples and update utilities#46932
howieleung merged 5 commits into
feature/azure-ai-projects/2.2.0from
howie/create-from-code

Conversation

@howieleung
Copy link
Copy Markdown
Member

  • Added sample_hosted_agent_create_from_code.py and sample_hosted_agent_create_from_code_async.py for uploading code zips as new versions of hosted agents.
  • Introduced select_echo_agent_code_zip function to choose between bundled and remote build dependencies.
  • Updated wait_for_agent_version_active to support both sync and async variants.
  • Enhanced hosted_agents_util.py with new functionality for loading agent code zips and checking agent status.
  • Added new echo agent assets including Dockerfile, README, and requirements for deployment.
  • Updated tests to include new hosted agent creation scenarios for both sync and async samples.

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

- Added `sample_hosted_agent_create_from_code.py` and `sample_hosted_agent_create_from_code_async.py` for uploading code zips as new versions of hosted agents.
- Introduced `select_echo_agent_code_zip` function to choose between bundled and remote build dependencies.
- Updated `wait_for_agent_version_active` to support both sync and async variants.
- Enhanced `hosted_agents_util.py` with new functionality for loading agent code zips and checking agent status.
- Added new echo agent assets including Dockerfile, README, and requirements for deployment.
- Updated tests to include new hosted agent creation scenarios for both sync and async samples.

Co-authored-by: Copilot <copilot@github.com>
@howieleung howieleung force-pushed the howie/create-from-code branch from caf892e to 1ff90cd Compare May 15, 2026 22:17
Comment thread sdk/ai/azure-ai-projects/samples/agents/tools/sample_agent_work_iq.py Outdated
Comment thread sdk/ai/azure-ai-projects/samples/agents/tools/sample_agent_work_iq.py Outdated
Comment thread sdk/ai/azure-ai-projects/samples/agents/tools/sample_agent_work_iq.py Outdated
Comment thread sdk/ai/azure-ai-projects/samples/agents/tools/sample_agent_work_iq.py Outdated
Comment thread sdk/ai/azure-ai-projects/samples/agents/tools/sample_agent_work_iq.py Outdated
@howieleung howieleung force-pushed the howie/create-from-code branch from b10192a to fc83f6b Compare May 15, 2026 22:45
Co-authored-by: Copilot <copilot@github.com>
@howieleung howieleung force-pushed the howie/create-from-code branch from fc83f6b to cf6c647 Compare May 15, 2026 22:52
…ions

- Introduced `sample_create_hosted_agent_async.py` for async CRUD operations on hosted agent versions.
- Updated existing samples to reference new async creation methods.
- Enhanced changelog with new sample additions and clarified prerequisites for hosted agent usage.

Co-authored-by: Copilot <copilot@github.com>
@howieleung howieleung force-pushed the howie/create-from-code branch from 805a5fc to 43b8d29 Compare May 15, 2026 23:22
Co-authored-by: Copilot <copilot@github.com>
@howieleung howieleung merged commit 1918230 into feature/azure-ai-projects/2.2.0 May 16, 2026
19 checks passed
@howieleung howieleung deleted the howie/create-from-code branch May 16, 2026 04:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants