azure-ai-projects client library changes for 2.3.0 release#47418
Open
dargilco wants to merge 14 commits into
Open
azure-ai-projects client library changes for 2.3.0 release#47418dargilco wants to merge 14 commits into
dargilco wants to merge 14 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR prepares azure-ai-projects for the 2.3.0 release by updating the TypeSpec source configuration, refreshing generated API surface (models/operations) including paging changes, and adding/adjusting release artifacts (changelog, docs, samples, and tooling deps).
Changes:
- Updated
.beta.agents.list_optimization_candidatesto returnItemPaged[OptimizationCandidate]/AsyncItemPaged[...]and removed the publicafterparameter; removed the legacyAgentsPagedResultOptimizationCandidatemodel. - Added a new hosted-agents sample for routines dispatch and adjusted sample test skipping/documentation counts accordingly.
- Bumped
@azure-tools/openai-typespecto1.19.0and added a new local skill doc for updating theazure-ai-projectschangelog.
Reviewed changes
Copilot reviewed 18 out of 19 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| sdk/ai/azure-ai-projects/tsp-location.yaml.saved | Removed obsolete saved TypeSpec location file. |
| sdk/ai/azure-ai-projects/tsp-location.yaml | Added updated TypeSpec repo/commit and dependency paths for generation. |
| sdk/ai/azure-ai-projects/tests/samples/test_samples.py | Skips the new dispatch routine sample due to RBAC limitation in test identity. |
| sdk/ai/azure-ai-projects/tests/redteams/test_redteams.py | Removes a sample extraction marker from the redteams test. |
| sdk/ai/azure-ai-projects/tests/redteams/test_redteams_async.py | Same marker removal for async redteams test. |
| sdk/ai/azure-ai-projects/samples/hosted_agents/sample_routines_with_dispatch.py | New sample demonstrating manual routine dispatch and run polling. |
| sdk/ai/azure-ai-projects/docs/subclients.md | Updates method counts and annotates handwritten methods. |
| sdk/ai/azure-ai-projects/CHANGELOG.md | Adds 2.3.0 breaking change note and new sample entries. |
| sdk/ai/azure-ai-projects/azure/ai/projects/operations/_operations.py | Updates sync paging for list_optimization_candidates to ItemPaged. |
| sdk/ai/azure-ai-projects/azure/ai/projects/aio/operations/_operations.py | Updates async paging for list_optimization_candidates to AsyncItemPaged. |
| sdk/ai/azure-ai-projects/azure/ai/projects/models/_models.py | Updates generated models (new tool types, filter operators, new fields; removes legacy paged-result model). |
| sdk/ai/azure-ai-projects/azure/ai/projects/models/_enums.py | Adds new enums for tool/search types and tool choice types. |
| sdk/ai/azure-ai-projects/azure/ai/projects/models/init.py | Exposes new models/enums and removes the legacy paged-result model from public exports. |
| sdk/ai/azure-ai-projects/apiview-properties.json | Aligns APIView type mapping with updated model set and cross-language version. |
| sdk/ai/azure-ai-projects/.github/skills/README.md | Updates skill usage instructions and lists available package skills. |
| sdk/ai/azure-ai-projects/.github/skills/azure-ai-projects-update-changelog/SKILL.md | Adds a new skill definition for generating/updating the changelog. |
| sdk/ai/azure-ai-projects/.github/skills/azure-ai-projects-emit-from-typespec/SKILL.md | Removes embedded changelog-update step (now handled by the new skill). |
| eng/emitter-package.json | Bumps @azure-tools/openai-typespec dependency. |
| eng/emitter-package-lock.json | Updates lockfile to reflect the new openai-typespec version and transitive updates. |
Files not reviewed (1)
- eng/emitter-package-lock.json: Language not supported
Comment on lines
+63
to
+66
| with ( | ||
| DefaultAzureCredential() as credential, | ||
| AIProjectClient(endpoint=endpoint, credential=credential, allow_preview=True) as project_client, | ||
| ): |
* sample update routines * Add test for routines samples and update sample skipping logic
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.
No description provided.