-
Notifications
You must be signed in to change notification settings - Fork 662
Python: default to service managed threads for AzureAIAgentClient to prevent … #1690
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: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ | |
| import os | ||
| import sys | ||
| from collections.abc import AsyncIterable, MutableMapping, MutableSequence, Sequence | ||
| from typing import Any, ClassVar, TypeVar | ||
| from typing import TYPE_CHECKING, Any, ClassVar, TypeVar | ||
|
|
||
| from agent_framework import ( | ||
| AGENT_FRAMEWORK_USER_AGENT, | ||
|
|
@@ -98,6 +98,9 @@ | |
| else: | ||
| from typing_extensions import Self # pragma: no cover | ||
|
|
||
| if TYPE_CHECKING: | ||
| from agent_framework import ChatAgent | ||
|
|
||
|
|
||
| logger = get_logger("agent_framework.azure") | ||
|
|
||
|
|
@@ -1102,3 +1105,6 @@ def service_url(self) -> str: | |
| The service URL for the chat client, or None if not set. | ||
| """ | ||
| return self.project_client._config.endpoint | ||
|
|
||
| def create_agent(self, *, store: bool | None = True, **kwargs: Any) -> "ChatAgent": | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't know if this is the way, for one, this method lacks all metadata compared to the create_agent method on the BaseClient, so it won't give the right IDE info. It also introduces a difference in creating a agent through this method, vs directly, which I don't like. I'm also not convinced what problem this solves. |
||
| return super().create_agent(store=store, **kwargs) | ||
Uh oh!
There was an error while loading. Please reload this page.