Howie/changelog2 - #48625
Closed
Howie Leung (howieleung) wants to merge 43 commits into
Closed
Conversation
…est, add new hosted agent samples for Teams message trigger and reminder preview (#48234) * Remove sample_agent_toolbox_skill.py per bakcned folks and Linda request, add new hosted agent samples for Teams message trigger and reminder preview * change log
… usage; update assets.json tag
* Refactor agent name retrieval to use a fallback mechanism
- Updated multiple sample scripts to change the way the agent name is retrieved from environment variables.
- Replaced the default value assignment using `os.environ.get("FOUNDRY_AGENT_NAME", "MyAgent")` with a more concise approach using `os.environ.get("FOUNDRY_AGENT_NAME") or "MyAgent"`.
- This change ensures that if the environment variable is not set, the fallback value "MyAgent" is still used, while improving code readability.
- The affected files include various agent tools and hosted agent samples across the project.
* rever dataset generation job polling and update assistant prompt
* Add A2A protocol support and update related models - Introduced A2ATool and A2AToolboxTool classes for A2A protocol implementation. - Added A2AProtocolVersion enum to define supported A2A protocol versions. - Updated DataGenerationJobOptions to include SimulationSeedDataGenerationJobOptions and removed TaskGenerationDataGenerationJobOptions. - Modified existing models and enums to accommodate new A2A features. - Updated sample agent to utilize the new A2ATool class. - Adjusted beta routines API to remove unsupported parameters and enhance pagination handling. - Updated YAML configuration to reflect repository changes. * Update tsp-location.yaml with latest commit and repository details * Update sample_agent_to_agent.py skip reason in test_samples.py
|
Azure Pipelines: Successfully started running 1 pipeline(s). 9 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
Pull request overview
Updates azure-ai-projects to 2.5.0 with regenerated Foundry APIs, custom job pollers, and revised samples.
Changes:
- Adds stable A2A tools and renames beta optimization/data-generation models.
- Adds custom sync/async pollers exposing job IDs.
- Updates routines pagination, samples, tests, and release metadata.
Reviewed changes
Copilot reviewed 38 out of 41 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
sdk/ai/azure-ai-projects/tsp-location.yaml |
Advances the TypeSpec source revision. |
sdk/ai/azure-ai-projects/tests/samples/test_samples.py |
Updates synchronous sample exclusions. |
sdk/ai/azure-ai-projects/tests/samples/test_samples_async.py |
Updates asynchronous sample exclusions. |
sdk/ai/azure-ai-projects/tests/foundry_features_header/foundry_features_header_test_base.py |
Expects routines V2 preview header. |
sdk/ai/azure-ai-projects/tests/evaluators/test_evaluators.py |
Tests synchronous evaluator job IDs. |
sdk/ai/azure-ai-projects/tests/evaluators/test_evaluators_async.py |
Tests asynchronous evaluator job IDs. |
sdk/ai/azure-ai-projects/tests/datasets/test_datasets.py |
Tests synchronous dataset job IDs. |
sdk/ai/azure-ai-projects/tests/datasets/test_datasets_async.py |
Tests asynchronous dataset job IDs. |
sdk/ai/azure-ai-projects/tests/agents/test_agent_optimization_poller.py |
Tests synchronous optimization job IDs. |
sdk/ai/azure-ai-projects/tests/agents/test_agent_optimization_poller_async.py |
Tests asynchronous optimization job IDs. |
sdk/ai/azure-ai-projects/samples/datasets/sample_dataset_generation_job_simpleqna_for_finetuning_with_app_polling.py |
Adds synchronous application polling sample. |
sdk/ai/azure-ai-projects/samples/datasets/sample_dataset_generation_job_simpleqna_for_finetuning_with_app_polling_async.py |
Adds asynchronous application polling sample. |
sdk/ai/azure-ai-projects/samples/agents/tools/sample_agent_to_agent.py |
Migrates the sample to stable A2A. |
sdk/ai/azure-ai-projects/samples/agents/optimization/sample_optimization_job_cancel.py |
Uses renamed optimization models. |
sdk/ai/azure-ai-projects/samples/agents/optimization/sample_optimization_job_basic.py |
Updates synchronous optimization model names. |
sdk/ai/azure-ai-projects/samples/agents/optimization/sample_optimization_job_basic_async.py |
Updates asynchronous optimization model names. |
sdk/ai/azure-ai-projects/samples/agents/optimization/sample_optimization_job_advanced_app_polling.py |
Uses poller-provided optimization job IDs. |
sdk/ai/azure-ai-projects/samples/agents/optimization/sample_optimization_job_advanced_app_polling_async.py |
Adds asynchronous poller-provided job handling. |
sdk/ai/azure-ai-projects/PostEmitter.ps1 |
Removes an obsolete generation workaround. |
sdk/ai/azure-ai-projects/docs/public-methods.md |
Marks customized LRO methods. |
sdk/ai/azure-ai-projects/CHANGELOG.md |
Documents the 2.5.0 release. |
sdk/ai/azure-ai-projects/azure/ai/projects/operations/_patch.py |
Installs customized beta operations. |
sdk/ai/azure-ai-projects/azure/ai/projects/operations/_patch_evaluators.py |
Adds the synchronous evaluator poller operation. |
sdk/ai/azure-ai-projects/azure/ai/projects/operations/_patch_datasets.py |
Adds the synchronous dataset poller operation. |
sdk/ai/azure-ai-projects/azure/ai/projects/operations/_patch_agents.py |
Adds the synchronous optimization poller operation. |
sdk/ai/azure-ai-projects/azure/ai/projects/operations/_operations.py |
Regenerates synchronous operations and pagination. |
sdk/ai/azure-ai-projects/azure/ai/projects/models/_patch.py |
Defines custom sync/async poller classes. |
sdk/ai/azure-ai-projects/azure/ai/projects/models/_enums.py |
Adds and renames generated enums. |
sdk/ai/azure-ai-projects/azure/ai/projects/models/__init__.py |
Exports the regenerated model API. |
sdk/ai/azure-ai-projects/azure/ai/projects/aio/operations/_patch.py |
Installs customized async beta operations. |
sdk/ai/azure-ai-projects/azure/ai/projects/aio/operations/_patch_evaluators_async.py |
Adds the async evaluator poller operation. |
sdk/ai/azure-ai-projects/azure/ai/projects/aio/operations/_patch_datasets_async.py |
Adds the async dataset poller operation. |
sdk/ai/azure-ai-projects/azure/ai/projects/aio/operations/_patch_agents_async.py |
Adds the async optimization poller operation. |
sdk/ai/azure-ai-projects/azure/ai/projects/aio/operations/_operations.py |
Regenerates async operations and pagination. |
sdk/ai/azure-ai-projects/azure/ai/projects/_version.py |
Bumps the package to 2.5.0. |
sdk/ai/azure-ai-projects/apiview-properties.json |
Updates APIView mappings. |
sdk/ai/azure-ai-projects/api.metadata.yml |
Refreshes API metadata. |
sdk/ai/azure-ai-projects/api.md |
Refreshes the public API surface. |
eng/emitter-package.json |
Normalizes the file ending. |
eng/emitter-package-lock.json |
Normalizes the lockfile ending. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
| print(f"Generated samples: {job_result.generated_samples}") | ||
|
|
||
| # ------------------------------------------------------------------ | ||
| # 5. Clean up. |
| * Renamed class `OptimizationJobProgress` to `AgentOptimizationJobProgress`. | ||
| * Renamed class `OptimizationJobResult` to `AgentOptimizationJobResult`. | ||
| * Renamed class `OptimizationOptions` to `AgentOptimizationOptions`. | ||
| * Renamed class `OptimizationReferenceDatasetInput` to `AgentOptimizationReferenceDatasetInput`. |
| print(f"Generated samples: {job_result.generated_samples}") | ||
|
|
||
| # ------------------------------------------------------------------ | ||
| # 5. Clean up. |
| "sample_agent_browser_automation.py", # APITimeoutError: request timed out | ||
| "sample_agent_openapi.py", # 400 2/28/2026 validation/tool_user_error; failing weather GET curl call in OpenAPI tool | ||
| "sample_agent_memory_search.py", # Skipped until re-enabled and recorded on Foundry endpoint that supports the new versioning schema | ||
| "sample_agent_to_agent.py", # Skipped not sample should work, but not able to obtain a project endpoint that work with a2a at this moment |
| ### Sample updates | ||
|
|
||
| * Added `sample_dataset_generation_job_simpleqna_for_finetuning_async.py` under `samples/datasets/`, demonstrating asynchronous generation of a SimpleQnA dataset for fine-tuning. | ||
| * Added `sample_dataset_generation_job_simpleqna_for_finetuning_with_app_polling.py` under `samples/datasets/`, demonstrating application-managed polling for a SimpleQnA fine-tuning data generation job. |
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.
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