Skip to content

azure-ai-projects client library changes for 2.3.0 release#47418

Open
dargilco wants to merge 14 commits into
mainfrom
feature/azure-ai-projects/2.3.0
Open

azure-ai-projects client library changes for 2.3.0 release#47418
dargilco wants to merge 14 commits into
mainfrom
feature/azure-ai-projects/2.3.0

Conversation

@dargilco

@dargilco dargilco commented Jun 9, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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_candidates to return ItemPaged[OptimizationCandidate] / AsyncItemPaged[...] and removed the public after parameter; removed the legacy AgentsPagedResultOptimizationCandidate model.
  • Added a new hosted-agents sample for routines dispatch and adjusted sample test skipping/documentation counts accordingly.
  • Bumped @azure-tools/openai-typespec to 1.19.0 and added a new local skill doc for updating the azure-ai-projects changelog.

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,
):
Comment thread sdk/ai/azure-ai-projects/tsp-location.yaml
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.

3 participants