Skip to content

Commit 50366ce

Browse files
authored
Made AgentsOperationsMixin private (#41900)
1 parent dd10bfb commit 50366ce

File tree

9 files changed

+88
-86
lines changed

9 files changed

+88
-86
lines changed

eng/emitter-package-lock.json

Lines changed: 71 additions & 71 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eng/emitter-package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "dist/src/index.js",
33
"dependencies": {
4-
"@azure-tools/typespec-python": "0.45.5"
4+
"@azure-tools/typespec-python": "0.46.0"
55
},
66
"devDependencies": {
77
"@typespec/compiler": "^1.1.0",
@@ -14,10 +14,10 @@
1414
"@typespec/streams": "~0.71.0",
1515
"@typespec/xml": "~0.71.0",
1616
"@azure-tools/typespec-azure-core": "~0.57.0",
17-
"@azure-tools/typespec-azure-resource-manager": "~0.57.0",
18-
"@azure-tools/typespec-autorest": "~0.57.0",
19-
"@azure-tools/typespec-azure-rulesets": "~0.57.0",
20-
"@azure-tools/typespec-client-generator-core": "~0.57.2",
17+
"@azure-tools/typespec-azure-resource-manager": "~0.57.2",
18+
"@azure-tools/typespec-autorest": "~0.57.1",
19+
"@azure-tools/typespec-azure-rulesets": "~0.57.1",
20+
"@azure-tools/typespec-client-generator-core": "~0.57.3",
2121
"@azure-tools/typespec-liftr-base": "0.8.0"
2222
}
2323
}

sdk/ai/azure-ai-agents/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
## 1.1.0b4 (Unreleased)
66

7+
### Bugs Fixed
8+
9+
- `_AgentsClientOperationsMixin` now it is private.
10+
711
### Sample updates
812

913
- Added a sample showing usage of MCP tool, [`sample_agents_mcp.py`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/ai/azure-ai-agents/samples/agents_tools/sample_agents_mcp.py).

sdk/ai/azure-ai-agents/azure/ai/agents/_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from ._configuration import AgentsClientConfiguration
1818
from ._utils.serialization import Deserializer, Serializer
1919
from .operations import (
20-
AgentsClientOperationsMixin,
2120
FilesOperations,
2221
MessagesOperations,
2322
RunStepsOperations,
@@ -27,12 +26,13 @@
2726
VectorStoreFilesOperations,
2827
VectorStoresOperations,
2928
)
29+
from .operations._operations import _AgentsClientOperationsMixin
3030

3131
if TYPE_CHECKING:
3232
from azure.core.credentials import TokenCredential
3333

3434

35-
class AgentsClient(AgentsClientOperationsMixin): # pylint: disable=too-many-instance-attributes
35+
class AgentsClient(_AgentsClientOperationsMixin): # pylint: disable=too-many-instance-attributes
3636
"""AgentsClient.
3737
3838
:ivar threads: ThreadsOperations operations

sdk/ai/azure-ai-agents/azure/ai/agents/aio/_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from .._utils.serialization import Deserializer, Serializer
1818
from ._configuration import AgentsClientConfiguration
1919
from .operations import (
20-
AgentsClientOperationsMixin,
2120
FilesOperations,
2221
MessagesOperations,
2322
RunStepsOperations,
@@ -27,12 +26,13 @@
2726
VectorStoreFilesOperations,
2827
VectorStoresOperations,
2928
)
29+
from .operations._operations import _AgentsClientOperationsMixin
3030

3131
if TYPE_CHECKING:
3232
from azure.core.credentials_async import AsyncTokenCredential
3333

3434

35-
class AgentsClient(AgentsClientOperationsMixin): # pylint: disable=too-many-instance-attributes
35+
class AgentsClient(_AgentsClientOperationsMixin): # pylint: disable=too-many-instance-attributes
3636
"""AgentsClient.
3737
3838
:ivar threads: ThreadsOperations operations

sdk/ai/azure-ai-agents/azure/ai/agents/aio/operations/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from ._operations import VectorStoresOperations # type: ignore
2121
from ._operations import VectorStoreFilesOperations # type: ignore
2222
from ._operations import VectorStoreFileBatchesOperations # type: ignore
23-
from ._operations import AgentsClientOperationsMixin # type: ignore
2423

2524
from ._patch import __all__ as _patch_all
2625
from ._patch import *
@@ -35,7 +34,6 @@
3534
"VectorStoresOperations",
3635
"VectorStoreFilesOperations",
3736
"VectorStoreFileBatchesOperations",
38-
"AgentsClientOperationsMixin",
3937
]
4038
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
4139
_patch_sdk()

sdk/ai/azure-ai-agents/azure/ai/agents/aio/operations/_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3992,7 +3992,7 @@ async def get_next(_continuation_token=None):
39923992
return AsyncItemPaged(get_next, extract_data)
39933993

39943994

3995-
class AgentsClientOperationsMixin(
3995+
class _AgentsClientOperationsMixin(
39963996
ClientMixinABC[AsyncPipelineClient[HttpRequest, AsyncHttpResponse], AgentsClientConfiguration]
39973997
):
39983998

0 commit comments

Comments
 (0)