Skip to content

Commit 6234d8c

Browse files
committed
Update SDK code ai_we_0
1 parent 4474685 commit 6234d8c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+14675
-9078
lines changed

sdk/ai/azure-ai-agents/azure/ai/agents/_utils/model_base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pylint: disable=line-too-long,useless-suppression,too-many-lines
12
# coding=utf-8
23
# --------------------------------------------------------------------------
34
# Copyright (c) Microsoft Corporation. All rights reserved.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pylint: disable=line-too-long,useless-suppression,too-many-lines
12
# coding=utf-8
23
# --------------------------------------------------------------------------
34
# Copyright (c) Microsoft Corporation. All rights reserved.

sdk/ai/azure-ai-agents/azure/ai/agents/models/_enums.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,15 @@ class AgentsToolChoiceOptionMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
5959

6060
class AgentStreamEvent(str, Enum, metaclass=CaseInsensitiveEnumMeta):
6161
"""Each event in a server-sent events stream has an ``event`` and ``data`` property:
62-
63-
64-
6562
.. code-block::
66-
6763
event: thread.created
6864
data: {"id": "thread_123", "object": "thread", ...}
69-
7065
We emit events whenever a new object is created, transitions to a new state, or is being
7166
streamed in parts (deltas). For example, we emit ``thread.run.created`` when a new run
7267
is created, ``thread.run.completed`` when a run completes, and so on. When an Agent chooses
7368
to create a message during a run, we emit a ``thread.message.created event``, a
7469
``thread.message.in_progress`` event, many ``thread.message.delta`` events, and finally a
7570
``thread.message.completed`` event.
76-
7771
We may add additional events over time, so we recommend handling unknown events gracefully
7872
in your code.
7973
"""
@@ -196,7 +190,7 @@ class FileState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
196190
UPLOADED = "uploaded"
197191
"""The file has been uploaded but it's not yet processed. This state is not returned by Azure
198192
OpenAI and exposed only for
199-
compatibility. It can be categorized as an inactive state."""
193+
compatibility. It can be categorized as an inactive state."""
200194
PENDING = "pending"
201195
"""The operation was created and is not queued to be processed in the future. It can be
202196
categorized as an inactive state."""
@@ -211,11 +205,11 @@ class FileState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
211205
DELETING = "deleting"
212206
"""The entity is in the process to be deleted. This state is not returned by Azure OpenAI and
213207
exposed only for compatibility.
214-
It can be categorized as an active state."""
208+
It can be categorized as an active state."""
215209
DELETED = "deleted"
216210
"""The entity has been deleted but may still be referenced by other entities predating the
217211
deletion. It can be categorized as a
218-
terminal state."""
212+
terminal state."""
219213

220214

221215
class ImageDetailLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta):
@@ -331,7 +325,6 @@ class MouseButton(str, Enum, metaclass=CaseInsensitiveEnumMeta):
331325

332326
class OpenApiAuthType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
333327
"""Authentication type for OpenApi endpoint. Allowed types are:
334-
335328
* Anonymous (no authentication required)
336329
* Connection (requires connection_id to endpoint, as setup in AI Foundry)
337330
* Managed_Identity (requires audience for identity based auth).
@@ -496,7 +489,7 @@ class VectorStoreChunkingStrategyResponseType(str, Enum, metaclass=CaseInsensiti
496489

497490
class VectorStoreDataSourceAssetType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
498491
"""Type of vector storage asset. Asset type may be a uri_asset, in this case it should contain
499-
asset URI ID,
492+
asset URI ID,
500493
in the case of id_asset it should contain the data ID.
501494
"""
502495

sdk/ai/azure-ai-agents/azure/ai/agents/models/_models.py

Lines changed: 478 additions & 497 deletions
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pylint: disable=too-many-lines
12
# coding=utf-8
23
# --------------------------------------------------------------------------
34
# Copyright (c) Microsoft Corporation. All rights reserved.
Lines changed: 60 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,64 @@
1-
[tool.mypy]
2-
python_version = "3.10"
3-
exclude = [
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# Code generated by Microsoft (R) Python Code Generator.
5+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
6+
# --------------------------------------------------------------------------
7+
8+
[build-system]
9+
requires = ["setuptools>=77.0.3", "wheel"]
10+
build-backend = "setuptools.build_meta"
11+
12+
[project]
13+
name = "azure-ai-agents"
14+
authors = [
15+
{ name = "Microsoft Corporation", email = "[email protected]" },
416
]
5-
warn_unused_configs = true
6-
ignore_missing_imports = true
7-
follow_imports_for_stubs = false
8-
9-
[tool.isort]
10-
profile = "black"
11-
line_length = 120
12-
known_first_party = ["azure"]
13-
filter_files=true
14-
extend_skip_glob = [
15-
"*/_vendor/*",
16-
"*/_generated/*",
17-
"*/_restclient/*",
18-
"*/doc/*",
19-
"*/.tox/*",
17+
description = "Microsoft Corporation Azure Ai Agents Client Library for Python"
18+
license = "MIT"
19+
classifiers = [
20+
"Development Status :: 4 - Beta",
21+
"Programming Language :: Python",
22+
"Programming Language :: Python :: 3 :: Only",
23+
"Programming Language :: Python :: 3",
24+
"Programming Language :: Python :: 3.9",
25+
"Programming Language :: Python :: 3.10",
26+
"Programming Language :: Python :: 3.11",
27+
"Programming Language :: Python :: 3.12",
28+
"Programming Language :: Python :: 3.13",
2029
]
30+
requires-python = ">=3.9"
31+
keywords = ["azure", "azure sdk"]
2132

22-
[tool.azure-sdk-build]
23-
whl_no_aio= false
33+
dependencies = [
34+
"isodate>=0.6.1",
35+
"azure-core>=1.35.0",
36+
"typing-extensions>=4.6.0",
37+
]
38+
dynamic = [
39+
"version", "readme"
40+
]
41+
42+
[project.urls]
43+
repository = "https://github.com/Azure/azure-sdk-for-python"
2444

45+
[tool.setuptools.dynamic]
46+
version = {attr = "azure.ai.agents._version.VERSION"}
47+
readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"}
48+
49+
[tool.setuptools.packages.find]
50+
exclude = [
51+
"tests*",
52+
"generated_tests*",
53+
"samples*",
54+
"generated_samples*",
55+
"doc*",
56+
"azure",
57+
"azure.ai",
58+
]
59+
60+
[tool.setuptools.package-data]
61+
pytyped = ["py.typed"]
62+
63+
[tool.azure-sdk-build]
64+
whl_no_aio = false

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

Lines changed: 0 additions & 80 deletions
This file was deleted.

0 commit comments

Comments
 (0)