-
Notifications
You must be signed in to change notification settings - Fork 3k
Howie/poll timeout #40825
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
base: feature/azure-ai-agents-v1
Are you sure you want to change the base?
Howie/poll timeout #40825
Conversation
There was a problem hiding this 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 PR introduces the initial implementation for the AgentsClient with both asynchronous and synchronous support. Key changes include the addition of a polling timeout configuration, updated client initialization logic, and new documentation for FunctionTool along with release notes.
Reviewed Changes
Copilot reviewed 155 out of 159 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
sdk/ai/azure-ai-agents/azure/ai/agents/aio/operations/init.py | Initializes async operations and aggregates patch exports. |
sdk/ai/azure-ai-agents/azure/ai/agents/aio/_configuration.py | Adds polling_interval and configures async credential policies. |
sdk/ai/azure-ai-agents/azure/ai/agents/aio/_client.py | Sets up the async client; note potential issue with endpoint resolution. |
sdk/ai/azure-ai-agents/azure/ai/agents/_configuration.py | Updates sync configuration with polling and credential handling. |
sdk/ai/azure-ai-agents/azure/ai/agents/_client.py | Sets up the sync client; note potential issue with endpoint resolution. |
sdk/ai/azure-ai-agents/azure/ai/agents/_types.py | Defines several type unions, including a duplicate union member. |
sdk/ai/azure-ai-agents/FunctionTool.md | Provides FunctionTool specification documentation. |
sdk/ai/azure-ai-agents/CHANGELOG.md | Introduces initial release notes. |
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
- [nitpick] The type definition includes a duplicate 'str' entry; consider removing the redundant type to improve clarity.
AgentsApiToolChoiceOption = Union[str, str, "_models.AgentsApiToolChoiceOptionMode", "_models.AgentsNamedToolChoice"]
def __init__( | ||
self, endpoint: str, credential: Union[AzureKeyCredential, "AsyncTokenCredential"], **kwargs: Any | ||
) -> None: | ||
_endpoint = "{endpoint}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The _endpoint variable is set to a literal '{endpoint}' instead of using the actual endpoint parameter; consider using the provided endpoint value (for example, via an f-string) to ensure the client is initialized with the correct URL.
_endpoint = "{endpoint}" | |
_endpoint = endpoint |
Copilot uses AI. Check for mistakes.
""" | ||
|
||
def __init__(self, endpoint: str, credential: Union[AzureKeyCredential, "TokenCredential"], **kwargs: Any) -> None: | ||
_endpoint = "{endpoint}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to the async client, the sync client uses a literal '{endpoint}' for _endpoint rather than the actual endpoint value; update this to dynamically use the endpoint parameter.
_endpoint = "{endpoint}" | |
_endpoint = endpoint |
Copilot uses AI. Check for mistakes.
sdk/ai/azure-ai-agents/azure/ai/agents/aio/operations/_patch.py
Outdated
Show resolved
Hide resolved
python-swe-agent: Main observations
What changed & why These changes make the helper fully non-blocking, more robust to clock |
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
API change check APIView has identified API level changes in this PR and created following API reviews. |
Did 1, 2, and |
Add polling timeout