-
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
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 |
ccabd68
to
99df92d
Compare
99df92d
to
9ed92aa
Compare
* init agents v1 with new operations * update * add samples * aio * update * update * updates * update * update * update * update * update * add create_thread_and_run * create thread and process run * add tests and update README (#40760) * update README * update tests * fix sample * adding tracing (#40769) * Fix unit tests (#40783) * Fix unit tests * Record instrumentor tests * modifying multiagent sample (#40799) * Jhakulin/azure sdk review fixes (#40795) Fix static analysis, updates from azure sdk reviews. --------- Co-authored-by: nick863 <[email protected]> * run black, fix some readme update snip issue (#40815) * Howie/ffix toolcall (#40750) * max retry and tests * fix test * Update samples csv data (#40821) * update samples csv data * add cspell * Add ew artifact to list (#40833) * [AI] [Agents] tool schema updates (#40841) * [AI] [Agents] tool changes for Bing tools and Azure AI Search * add implementation for abstract tool methods * Remove packages not handled in the branch from the CI (#40842) * Jhakulin/agents naming changes (#40845) * 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]> * bring tests README back (#40858) * Uncomment function tests (#40855) * naming changes * update names * update * update tests * update * 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]> * Uncomment function tests * Fix --------- Co-authored-by: jhakulin <[email protected]> * Jhakulin/list op update (#40871) * update list operations * update tests * update README * update * Fix the instrumentation tests (#40877) * Fix the instrumentation tests * Better instrumentation handling * pylint --------- Co-authored-by: Nikolay Rovinskiy <[email protected]> * Howie/poll timeout (#40825) * add timeout for polling * fix merge * fix merge * fix merge * fixed merge * enable_auto_function_calls param changes (#40820) * get CI green (#40884) * fix logic app sample (#40883) * agent azure monitor tracing sample updates (#40865) * agent azure monitor tracing sample updates * disable pylint for global statement * agent tracing runid to feature branch (#40888) * omit azure-ai-agents from pypy compatibility map * [AI] [Agents] write initial CHANGELOG and add missing samples (#40891) * [AI] [Agents] write initial CHANGELOG * add sample for multiple connected agents * add sample for connected agents * update snippets * try get green pipeline (#40914) * resolved comments (#40922) * update code owner (#40933) * Howie/toolcall fix (#40939) * update code owner * fix tool call for async to be same as sync * fix test * Resolved Johan comments (#40943) * resolved comments * resolved comments * Resolved comments * change project label * Hide the hack to use connection string. (#40945) * FIx for function name changes (#40951) * Remove Key Authentication (#40954) * Remove Key Authentication * Exclude samples * Fix linter * Fixed logger (#40957) * clean up py (#40959) --------- Co-authored-by: jhakulin <[email protected]> Co-authored-by: M-Hietala <[email protected]> Co-authored-by: Nikolay Rovinskiy <[email protected]> Co-authored-by: Glenn Harper <[email protected]> Co-authored-by: Scott Beddall <[email protected]>
* init agents v1 with new operations * update * add samples * aio * update * update * updates * update * update * update * update * update * add create_thread_and_run * create thread and process run * add tests and update README (#40760) * update README * update tests * fix sample * adding tracing (#40769) * Fix unit tests (#40783) * Fix unit tests * Record instrumentor tests * modifying multiagent sample (#40799) * Jhakulin/azure sdk review fixes (#40795) Fix static analysis, updates from azure sdk reviews. --------- Co-authored-by: nick863 <[email protected]> * run black, fix some readme update snip issue (#40815) * Howie/ffix toolcall (#40750) * max retry and tests * fix test * Update samples csv data (#40821) * update samples csv data * add cspell * Add ew artifact to list (#40833) * [AI] [Agents] tool schema updates (#40841) * [AI] [Agents] tool changes for Bing tools and Azure AI Search * add implementation for abstract tool methods * Remove packages not handled in the branch from the CI (#40842) * Jhakulin/agents naming changes (#40845) * 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]> * bring tests README back (#40858) * Uncomment function tests (#40855) * naming changes * update names * update * update tests * update * 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]> * Uncomment function tests * Fix --------- Co-authored-by: jhakulin <[email protected]> * Jhakulin/list op update (#40871) * update list operations * update tests * update README * update * Fix the instrumentation tests (#40877) * Fix the instrumentation tests * Better instrumentation handling * pylint --------- Co-authored-by: Nikolay Rovinskiy <[email protected]> * Howie/poll timeout (#40825) * add timeout for polling * fix merge * fix merge * fix merge * fixed merge * enable_auto_function_calls param changes (#40820) * get CI green (#40884) * fix logic app sample (#40883) * agent azure monitor tracing sample updates (#40865) * agent azure monitor tracing sample updates * disable pylint for global statement * agent tracing runid to feature branch (#40888) * omit azure-ai-agents from pypy compatibility map * [AI] [Agents] write initial CHANGELOG and add missing samples (#40891) * [AI] [Agents] write initial CHANGELOG * add sample for multiple connected agents * add sample for connected agents * update snippets * try get green pipeline (#40914) * resolved comments (#40922) * update code owner (#40933) * Howie/toolcall fix (#40939) * update code owner * fix tool call for async to be same as sync * fix test * Resolved Johan comments (#40943) * resolved comments * resolved comments * Resolved comments * change project label * Hide the hack to use connection string. (#40945) * FIx for function name changes (#40951) * Remove Key Authentication (#40954) * Remove Key Authentication * Exclude samples * Fix linter * Fixed logger (#40957) * clean up py (#40959) * removing enable_trace function from agents telemetry * removing an import of the removed function * redoing change that was incorrectly merged * removing one remaining enable_telemetry import * adding instrumentor call to azure monitor tracing samples * fixing multiagent sample trace configurator * updating tracing snippet in readme --------- Co-authored-by: jhakulin <[email protected]> Co-authored-by: Nikolay Rovinskiy <[email protected]> Co-authored-by: Howie Leung <[email protected]> Co-authored-by: Glenn Harper <[email protected]> Co-authored-by: Scott Beddall <[email protected]>
Add polling timeout