Add hosted agent creation samples and update utilities#46932
Merged
howieleung merged 5 commits intoMay 16, 2026
Conversation
- 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>
… into howie/create-from-code
caf892e to
1ff90cd
Compare
dargilco
requested changes
May 15, 2026
b10192a to
fc83f6b
Compare
Co-authored-by: Copilot <copilot@github.com>
fc83f6b to
cf6c647
Compare
dargilco
approved these changes
May 15, 2026
…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>
805a5fc to
43b8d29
Compare
dargilco
approved these changes
May 15, 2026
Co-authored-by: Copilot <copilot@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
sample_hosted_agent_create_from_code.pyandsample_hosted_agent_create_from_code_async.pyfor uploading code zips as new versions of hosted agents.select_echo_agent_code_zipfunction to choose between bundled and remote build dependencies.wait_for_agent_version_activeto support both sync and async variants.hosted_agents_util.pywith new functionality for loading agent code zips and checking agent status.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:
General Guidelines and Best Practices
Testing Guidelines