Skip to content

Commit d25683b

Browse files
committed
Update SDK code ai_we_0
1 parent 28a5dd8 commit d25683b

File tree

522 files changed

+70738
-11319
lines changed

Some content is hidden

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

522 files changed

+70738
-11319
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/_models.py

Lines changed: 17 additions & 24 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.
@@ -926,18 +927,16 @@ class BingCustomSearchConfiguration(_Model):
926927
927928
* It is possible for multiple pages to include some overlap in results.
928929
* This parameter affects only web page results. It's possible that AI model might not use all
929-
search results returned by Bing.
930-
930+
search results returned by Bing.
931931
:vartype count: int
932932
:ivar freshness: Filter search results by the following case-insensitive age values:
933933
934934
* Day: Return webpages that Bing discovered within the last 24 hours.
935935
* Week: Return webpages that Bing discovered within the last 7 days.
936936
* Month: Return webpages that Bing discovered within the last 30 days. To get articles
937-
discovered by Bing during a specific timeframe, specify a date range in the form:
938-
`YYYY-MM-DD..YYYY-MM-DD`. For example, `freshness=2019-02-01..2019-05-30. To limit the results
939-
to a single date, set this parameter to a specific date. For example, freshness=2019-02-04`.
940-
937+
discovered by Bing during a specific timeframe, specify a date range in the form:
938+
`YYYY-MM-DD..YYYY-MM-DD`. For example, `freshness=2019-02-01..2019-05-30. To limit the results
939+
to a single date, set this parameter to a specific date. For example, freshness=2019-02-04`.
941940
:vartype freshness: str
942941
"""
943942

@@ -981,18 +980,16 @@ class BingCustomSearchConfiguration(_Model):
981980
982981
* It is possible for multiple pages to include some overlap in results.
983982
* This parameter affects only web page results. It's possible that AI model might not use all
984-
search results returned by Bing.
985-
"""
983+
search results returned by Bing."""
986984
freshness: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
987985
"""Filter search results by the following case-insensitive age values:
988986
989987
* Day: Return webpages that Bing discovered within the last 24 hours.
990988
* Week: Return webpages that Bing discovered within the last 7 days.
991989
* Month: Return webpages that Bing discovered within the last 30 days. To get articles
992-
discovered by Bing during a specific timeframe, specify a date range in the form:
993-
`YYYY-MM-DD..YYYY-MM-DD`. For example, `freshness=2019-02-01..2019-05-30. To limit the results
994-
to a single date, set this parameter to a specific date. For example, freshness=2019-02-04`.
995-
"""
990+
discovered by Bing during a specific timeframe, specify a date range in the form:
991+
`YYYY-MM-DD..YYYY-MM-DD`. For example, `freshness=2019-02-01..2019-05-30. To limit the results
992+
to a single date, set this parameter to a specific date. For example, freshness=2019-02-04`."""
996993

997994
@overload
998995
def __init__(
@@ -1127,18 +1124,16 @@ class BingGroundingSearchConfiguration(_Model):
11271124
11281125
* It is possible for multiple pages to include some overlap in results.
11291126
* This parameter affects only web page results. It's possible that AI model might not use all
1130-
search results returned by Bing.
1131-
1127+
search results returned by Bing.
11321128
:vartype count: int
11331129
:ivar freshness: Filter search results by the following case-insensitive age values:
11341130
11351131
* Day: Return webpages that Bing discovered within the last 24 hours.
11361132
* Week: Return webpages that Bing discovered within the last 7 days.
11371133
* Month: Return webpages that Bing discovered within the last 30 days. To get articles
1138-
discovered by Bing during a specific timeframe, specify a date range in the form:
1139-
`YYYY-MM-DD..YYYY-MM-DD`. For example, `freshness=2019-02-01..2019-05-30. To limit the results
1140-
to a single date, set this parameter to a specific date. For example, freshness=2019-02-04`.
1141-
1134+
discovered by Bing during a specific timeframe, specify a date range in the form:
1135+
`YYYY-MM-DD..YYYY-MM-DD`. For example, `freshness=2019-02-01..2019-05-30. To limit the results
1136+
to a single date, set this parameter to a specific date. For example, freshness=2019-02-04`.
11421137
:vartype freshness: str
11431138
"""
11441139

@@ -1180,18 +1175,16 @@ class BingGroundingSearchConfiguration(_Model):
11801175
11811176
* It is possible for multiple pages to include some overlap in results.
11821177
* This parameter affects only web page results. It's possible that AI model might not use all
1183-
search results returned by Bing.
1184-
"""
1178+
search results returned by Bing."""
11851179
freshness: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
11861180
"""Filter search results by the following case-insensitive age values:
11871181
11881182
* Day: Return webpages that Bing discovered within the last 24 hours.
11891183
* Week: Return webpages that Bing discovered within the last 7 days.
11901184
* Month: Return webpages that Bing discovered within the last 30 days. To get articles
1191-
discovered by Bing during a specific timeframe, specify a date range in the form:
1192-
`YYYY-MM-DD..YYYY-MM-DD`. For example, `freshness=2019-02-01..2019-05-30. To limit the results
1193-
to a single date, set this parameter to a specific date. For example, freshness=2019-02-04`.
1194-
"""
1185+
discovered by Bing during a specific timeframe, specify a date range in the form:
1186+
`YYYY-MM-DD..YYYY-MM-DD`. For example, `freshness=2019-02-01..2019-05-30. To limit the results
1187+
to a single date, set this parameter to a specific date. For example, freshness=2019-02-04`."""
11951188

11961189
@overload
11971190
def __init__(

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: 58 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,62 @@
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+
"samples*",
53+
"doc*",
54+
"azure",
55+
"azure.ai",
56+
]
57+
58+
[tool.setuptools.package-data]
59+
pytyped = ["py.typed"]
60+
61+
[tool.azure-sdk-build]
62+
whl_no_aio = false

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

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

sdk/ai/azure-ai-projects/apiview-properties.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
"azure.ai.projects.models.ModelDeploymentSku": "Azure.AI.Projects.Sku",
3939
"azure.ai.projects.models.ModelResponseGenerationTarget": "Azure.AI.Projects.modelResponseGenerationTarget",
4040
"azure.ai.projects.models.NoAuthenticationCredentials": "Azure.AI.Projects.NoAuthenticationCredentials",
41+
"azure.ai.projects.models.PagedDatasetVersion": "Azure.Core.Page",
42+
"azure.ai.projects.models.PagedIndex": "Azure.Core.Page",
4143
"azure.ai.projects.models.PendingUploadRequest": "Azure.AI.Projects.PendingUploadRequest",
4244
"azure.ai.projects.models.PendingUploadResponse": "Azure.AI.Projects.PendingUploadResponse",
4345
"azure.ai.projects.models.RedTeam": "Azure.AI.Projects.RedTeam",

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,14 @@ class AIProjectClient:
4545
:ivar red_teams: RedTeamsOperations operations
4646
:vartype red_teams: azure.ai.projects.operations.RedTeamsOperations
4747
:param endpoint: Project endpoint. In the form
48-
"https://your-ai-services-account-name.services.ai.azure.com/api/projects/_project"
48+
"`https://your-ai-services-account-name.services.ai.azure.com/api/projects/_project
49+
<https://your-ai-services-account-name.services.ai.azure.com/api/projects/_project>`_"
4950
if your Foundry Hub has only one Project, or to use the default Project in your Hub. Or in the
50-
form "https://your-ai-services-account-name.services.ai.azure.com/api/projects/your-project-name"
51-
if you want to explicitly specify the Foundry Project name. Required.
51+
form
52+
"`https://your-ai-services-account-name.services.ai.azure.com/api/projects/your-project-name
53+
<https://your-ai-services-account-name.services.ai.azure.com/api/projects/your-project-name>`_"
54+
if you want to explicitly
55+
specify the Foundry Project name. Required.
5256
:type endpoint: str
5357
:param credential: Credential used to authenticate requests to the service. Required.
5458
:type credential: ~azure.core.credentials.TokenCredential

sdk/ai/azure-ai-projects/azure/ai/projects/_configuration.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ class AIProjectClientConfiguration: # pylint: disable=too-many-instance-attribu
2323
attributes.
2424
2525
:param endpoint: Project endpoint. In the form
26-
"https://your-ai-services-account-name.services.ai.azure.com/api/projects/_project"
26+
"`https://your-ai-services-account-name.services.ai.azure.com/api/projects/_project
27+
<https://your-ai-services-account-name.services.ai.azure.com/api/projects/_project>`_"
2728
if your Foundry Hub has only one Project, or to use the default Project in your Hub. Or in the
28-
form "https://your-ai-services-account-name.services.ai.azure.com/api/projects/your-project-name"
29-
if you want to explicitly specify the Foundry Project name. Required.
29+
form
30+
"`https://your-ai-services-account-name.services.ai.azure.com/api/projects/your-project-name
31+
<https://your-ai-services-account-name.services.ai.azure.com/api/projects/your-project-name>`_"
32+
if you want to explicitly
33+
specify the Foundry Project name. Required.
3034
:type endpoint: str
3135
:param credential: Credential used to authenticate requests to the service. Required.
3236
:type credential: ~azure.core.credentials.TokenCredential

sdk/ai/azure-ai-projects/azure/ai/projects/_patch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
)
3434
if _console_logging_enabled:
3535
import sys
36+
3637
# Enable detailed console logs across Azure libraries
3738
azure_logger = logging.getLogger("azure")
3839
azure_logger.setLevel(logging.DEBUG)

0 commit comments

Comments
 (0)