Skip to content

Feature/azure ai agents v1 #40818

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open

Feature/azure ai agents v1 #40818

wants to merge 29 commits into from

Conversation

howieleung
Copy link
Member

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 swagger spec, a link to the pull request containing these swagger spec changes has been 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.

@Copilot Copilot AI review requested due to automatic review settings April 30, 2025 18:47
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request implements version 1.0.0b1 of the Azure AI Agents SDK by introducing both asynchronous and synchronous client implementations, updated configuration and type definitions, and documentation for the new FunctionTool feature.

  • Added asynchronous client support with proper request pipeline handling.
  • Introduced synchronous client counterparts and updated configuration modules.
  • Provided type definitions and FunctionTool specification documentation along with the initial changelog.

Reviewed Changes

Copilot reviewed 154 out of 158 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
sdk/ai/azure-ai-agents/azure/ai/agents/aio/operations/init.py Exports async operations.
sdk/ai/azure-ai-agents/azure/ai/agents/aio/_configuration.py Adds configuration for the async client.
sdk/ai/azure-ai-agents/azure/ai/agents/aio/_client.py Implements async client with pipeline request handling.
sdk/ai/azure-ai-agents/azure/ai/agents/init.py Sets up package exports for async usage.
sdk/ai/azure-ai-agents/azure/ai/agents/_version.py Defines the SDK version.
sdk/ai/azure-ai-agents/azure/ai/agents/_utils/utils.py Provides utility functions for multipart form data.
sdk/ai/azure-ai-agents/azure/ai/agents/_types.py Introduces common type definitions for SDK operations.
sdk/ai/azure-ai-agents/azure/ai/agents/_configuration.py Updates synchronous client configuration.
sdk/ai/azure-ai-agents/azure/ai/agents/_client.py Implements the sync client with request formatting.
sdk/ai/azure-ai-agents/azure/ai/agents/init.py Sets up package exports for sync usage.
sdk/ai/azure-ai-agents/azure/ai/init.py, sdk/ai/azure-ai-agents/azure/init.py Enable package path extension support.
sdk/ai/azure-ai-agents/FunctionTool.md Adds documentation and examples for the FunctionTool feature.
sdk/ai/azure-ai-agents/CHANGELOG.md Introduces the initial version changelog.
Files not reviewed (4)
  • pylintrc: Language not supported
  • sdk/ai/azure-ai-agents/MANIFEST.in: Language not supported
  • sdk/ai/azure-ai-agents/apiview-properties.json: Language not supported
  • sdk/ai/azure-ai-agents/assets.json: Language not supported
Comments suppressed due to low confidence (1)

sdk/ai/azure-ai-agents/azure/ai/agents/_types.py:15

  • Remove duplicate 'str' in the union type for AgentsApiToolChoiceOption to simplify the definition.
AgentsApiToolChoiceOption = Union[str, str, '_models.AgentsApiToolChoiceOptionMode', '_models.AgentsNamedToolChoice']

AgentsApiToolChoiceOption = Union[str, str, "_models.AgentsApiToolChoiceOptionMode", "_models.AgentsNamedToolChoice"]
AgentsApiResponseFormatOption = Union[
str,
str,
Copy link
Preview

Copilot AI Apr 30, 2025

Choose a reason for hiding this comment

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

Remove duplicate 'str' in the union type for AgentsApiResponseFormatOption to improve clarity.

Suggested change
str,

Copilot uses AI. Check for mistakes.


def __init__(
self, endpoint: str, credential: Union[AzureKeyCredential, "AsyncTokenCredential"], **kwargs: Any
) -> None:
Copy link
Preview

Copilot AI Apr 30, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider adding a comment to clarify that the '{endpoint}' placeholder in _endpoint is intended for later substitution via the request formatting mechanism.

Suggested change
) -> None:
) -> None:
# Placeholder for the endpoint URL, intended for substitution via the request formatting mechanism.

Copilot uses AI. Check for mistakes.

:paramtype api_version: str
"""

def __init__(self, endpoint: str, credential: Union[AzureKeyCredential, "TokenCredential"], **kwargs: Any) -> None:
Copy link
Preview

Copilot AI Apr 30, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider adding a comment to clarify that the '{endpoint}' placeholder in _endpoint is used for dynamic URL formatting in the pipeline.

Suggested change
def __init__(self, endpoint: str, credential: Union[AzureKeyCredential, "TokenCredential"], **kwargs: Any) -> None:
def __init__(self, endpoint: str, credential: Union[AzureKeyCredential, "TokenCredential"], **kwargs: Any) -> None:
# The '{endpoint}' placeholder is used for dynamic URL formatting in the pipeline.

Copilot uses AI. Check for mistakes.

@azure-sdk
Copy link
Collaborator

azure-sdk commented Apr 30, 2025

API Change Check

APIView identified API level changes in this PR and created the following API reviews

azure-ai-agents

* update samples csv data

* add cspell
@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

azure-ai-agents

@nick863 nick863 requested review from msyyc and lmazuel as code owners May 1, 2025 00:26
glharper and others added 3 commits May 1, 2025 09:28
* [AI] [Agents] tool changes for Bing tools and Azure AI Search

* add implementation for abstract tool methods
* naming changes

* update tests

* Record the tests and disable azue functions for now (#40852)

* Nirovins/record tests (#40854)

* Record the tests and disable azue functions for now

* Add recordings for azure functions

* Record instrumentation tests

---------

Co-authored-by: Jarno Hakulinen <[email protected]>

---------

Co-authored-by: Nikolay Rovinskiy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants