Skip to content

Commit 659ceb1

Browse files
authored
added agent support (Azure#40775)
* added agent support * update * update * update * update * update * update * updates * update * updates * update * updates * updates * update * Updates * updates
1 parent eeba9ca commit 659ceb1

File tree

102 files changed

+7836
-621
lines changed

Some content is hidden

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

102 files changed

+7836
-621
lines changed

sdk/search/azure-search-documents/CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,47 @@
44

55
### Features Added
66

7+
- Added `azure.search.documents.agent.KnowledgeAgentRetrievalClient`.
8+
- Added knowledge agents operations in `SearchIndexClient`.
9+
- Added `resync` method in `SearchIndexerClient`.
10+
- Exposed `@search.reranker_boosted_score` in the search results.
11+
- Added `x_ms_query_source_authorization` as a keyword argument to `SearchClient.search`.
12+
- Added property `azure.search.documents.indexes.models.SearchField.permission_filter`.
13+
- Added property `azure.search.documents.indexes.models.SearchIndex.permission_filter_option`.
14+
15+
- Added new models:
16+
- `azure.search.documents.models.QueryResultDocumentInnerHit`
17+
- `azure.search.documents.indexes.models.ChatCompletionExtraParametersBehavior`
18+
- `azure.search.documents.indexes.models.ChatCompletionResponseFormat`
19+
- `azure.search.documents.indexes.models.ChatCompletionResponseFormatType`
20+
- `azure.search.documents.indexes.models.ChatCompletionResponseFormatJsonSchemaProperties`
21+
- `azure.search.documents.indexes.models.ChatCompletionSchema`
22+
- `azure.search.documents.indexes.models.ChatCompletionSkill`
23+
- `azure.search.documents.indexes.models.CommonModelParameters`
24+
- `azure.search.documents.indexes.models.DocumentIntelligenceLayoutSkillChunkingProperties`
25+
- `azure.search.documents.indexes.models.DocumentIntelligenceLayoutSkillChunkingUnit`
26+
- `azure.search.documents.indexes.models.DocumentIntelligenceLayoutSkillExtractionOptions`
27+
- `azure.search.documents.indexes.models.DocumentIntelligenceLayoutSkillOutputFormat`
28+
- `azure.search.documents.indexes.models.IndexerPermissionOption`
29+
- `azure.search.documents.indexes.models.IndexerResyncOption`
30+
- `azure.search.documents.indexes.models.KnowledgeAgent`
31+
- `azure.search.documents.indexes.models.KnowledgeAgentAzureOpenAIModel`
32+
- `azure.search.documents.indexes.models.KnowledgeAgentModel`
33+
- `azure.search.documents.indexes.models.KnowledgeAgentModelKind`
34+
- `azure.search.documents.indexes.models.KnowledgeAgentRequestLimits`
35+
- `azure.search.documents.indexes.models.KnowledgeAgentTargetIndex`
36+
- `azure.search.documents.indexes.models.PermissionFilter`
37+
- `azure.search.documents.indexes.models.RankingOrder`
38+
- `azure.search.documents.indexes.models.SearchIndexPermissionFilterOption`
39+
740
### Breaking Changes
841

942
### Bugs Fixed
1043

1144
### Other Changes
1245

46+
- Updated the API version to "2025-05-01-preview"
47+
1348
## 11.6.0b11 (2025-03-25)
1449

1550
### Bugs Fixed

sdk/search/azure-search-documents/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "python",
44
"TagPrefix": "python/search/azure-search-documents",
5-
"Tag": "python/search/azure-search-documents_687dda5785"
5+
"Tag": "python/search/azure-search-documents_3faffc0f61"
66
}

sdk/search/azure-search-documents/azure/search/documents/_api_versions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta):
1111
V2020_06_30 = "2020-06-30"
1212
V2023_11_01 = "2023-11-01"
1313
V2024_07_01 = "2024-07-01"
14-
V2025_03_01_PREVIEW = "2025-03-01-preview"
14+
V2025_05_01_PREVIEW = "2025-05-01-preview"
1515

1616

17-
DEFAULT_VERSION = ApiVersion.V2025_03_01_PREVIEW
17+
DEFAULT_VERSION = ApiVersion.V2025_05_01_PREVIEW

sdk/search/azure-search-documents/azure/search/documents/_generated/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
3-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.30.0)
3+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.34.1)
44
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
55
# --------------------------------------------------------------------------
66
# pylint: disable=wrong-import-position

sdk/search/azure-search-documents/azure/search/documents/_generated/_configuration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
3-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.30.0)
3+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.34.1)
44
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
55
# --------------------------------------------------------------------------
66

@@ -21,13 +21,13 @@ class SearchIndexClientConfiguration: # pylint: disable=too-many-instance-attri
2121
:type endpoint: str
2222
:param index_name: The name of the index. Required.
2323
:type index_name: str
24-
:keyword api_version: Api Version. Default value is "2025-03-01-preview". Note that overriding
24+
:keyword api_version: Api Version. Default value is "2025-05-01-preview". Note that overriding
2525
this default value may result in unsupported behavior.
2626
:paramtype api_version: str
2727
"""
2828

2929
def __init__(self, endpoint: str, index_name: str, **kwargs: Any) -> None:
30-
api_version: str = kwargs.pop("api_version", "2025-03-01-preview")
30+
api_version: str = kwargs.pop("api_version", "2025-05-01-preview")
3131

3232
if endpoint is None:
3333
raise ValueError("Parameter 'endpoint' must not be None.")

sdk/search/azure-search-documents/azure/search/documents/_generated/_patch.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# ------------------------------------
2-
# Copyright (c) Microsoft Corporation.
3-
# Licensed under the MIT License.
4-
# ------------------------------------
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# --------------------------------------------------------------------------
56
"""Customize generated code here.
67
78
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize

sdk/search/azure-search-documents/azure/search/documents/_generated/_search_index_client.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
3-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.30.0)
3+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.34.1)
44
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
55
# --------------------------------------------------------------------------
66

@@ -14,7 +14,7 @@
1414

1515
from . import models as _models
1616
from ._configuration import SearchIndexClientConfiguration
17-
from ._serialization import Deserializer, Serializer
17+
from ._utils.serialization import Deserializer, Serializer
1818
from .operations import DocumentsOperations
1919

2020

@@ -27,7 +27,7 @@ class SearchIndexClient:
2727
:type endpoint: str
2828
:param index_name: The name of the index. Required.
2929
:type index_name: str
30-
:keyword api_version: Api Version. Default value is "2025-03-01-preview". Note that overriding
30+
:keyword api_version: Api Version. Default value is "2025-05-01-preview". Note that overriding
3131
this default value may result in unsupported behavior.
3232
:paramtype api_version: str
3333
"""
@@ -37,6 +37,7 @@ def __init__( # pylint: disable=missing-client-constructor-parameter-credential
3737
) -> None:
3838
_endpoint = "{endpoint}/indexes('{indexName}')"
3939
self._config = SearchIndexClientConfiguration(endpoint=endpoint, index_name=index_name, **kwargs)
40+
4041
_policies = kwargs.pop("policies", None)
4142
if _policies is None:
4243
_policies = [
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# --------------------------------------------------------------------------
2+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/[email protected])
3+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
4+
# --------------------------------------------------------------------------

sdk/search/azure-search-documents/azure/search/documents/_generated/_serialization.py renamed to sdk/search/azure-search-documents/azure/search/documents/_generated/_utils/serialization.py

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,8 @@
11
# pylint: disable=line-too-long,useless-suppression,too-many-lines
2+
# coding=utf-8
23
# --------------------------------------------------------------------------
3-
#
4-
# Copyright (c) Microsoft Corporation. All rights reserved.
5-
#
6-
# The MIT License (MIT)
7-
#
8-
# Permission is hereby granted, free of charge, to any person obtaining a copy
9-
# of this software and associated documentation files (the ""Software""), to
10-
# deal in the Software without restriction, including without limitation the
11-
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
12-
# sell copies of the Software, and to permit persons to whom the Software is
13-
# furnished to do so, subject to the following conditions:
14-
#
15-
# The above copyright notice and this permission notice shall be included in
16-
# all copies or substantial portions of the Software.
17-
#
18-
# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23-
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24-
# IN THE SOFTWARE.
25-
#
4+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/[email protected])
5+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
266
# --------------------------------------------------------------------------
277

288
# pyright: reportUnnecessaryTypeIgnoreComment=false

sdk/search/azure-search-documents/azure/search/documents/_generated/aio/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
3-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.30.0)
3+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.34.1)
44
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
55
# --------------------------------------------------------------------------
66
# pylint: disable=wrong-import-position

sdk/search/azure-search-documents/azure/search/documents/_generated/aio/_configuration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
3-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.30.0)
3+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.34.1)
44
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
55
# --------------------------------------------------------------------------
66

@@ -21,13 +21,13 @@ class SearchIndexClientConfiguration: # pylint: disable=too-many-instance-attri
2121
:type endpoint: str
2222
:param index_name: The name of the index. Required.
2323
:type index_name: str
24-
:keyword api_version: Api Version. Default value is "2025-03-01-preview". Note that overriding
24+
:keyword api_version: Api Version. Default value is "2025-05-01-preview". Note that overriding
2525
this default value may result in unsupported behavior.
2626
:paramtype api_version: str
2727
"""
2828

2929
def __init__(self, endpoint: str, index_name: str, **kwargs: Any) -> None:
30-
api_version: str = kwargs.pop("api_version", "2025-03-01-preview")
30+
api_version: str = kwargs.pop("api_version", "2025-05-01-preview")
3131

3232
if endpoint is None:
3333
raise ValueError("Parameter 'endpoint' must not be None.")

sdk/search/azure-search-documents/azure/search/documents/_generated/aio/_patch.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# ------------------------------------
2-
# Copyright (c) Microsoft Corporation.
3-
# Licensed under the MIT License.
4-
# ------------------------------------
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# --------------------------------------------------------------------------
56
"""Customize generated code here.
67
78
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize

sdk/search/azure-search-documents/azure/search/documents/_generated/aio/_search_index_client.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
3-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.30.0)
3+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.34.1)
44
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
55
# --------------------------------------------------------------------------
66

@@ -13,7 +13,7 @@
1313
from azure.core.rest import AsyncHttpResponse, HttpRequest
1414

1515
from .. import models as _models
16-
from .._serialization import Deserializer, Serializer
16+
from .._utils.serialization import Deserializer, Serializer
1717
from ._configuration import SearchIndexClientConfiguration
1818
from .operations import DocumentsOperations
1919

@@ -27,7 +27,7 @@ class SearchIndexClient:
2727
:type endpoint: str
2828
:param index_name: The name of the index. Required.
2929
:type index_name: str
30-
:keyword api_version: Api Version. Default value is "2025-03-01-preview". Note that overriding
30+
:keyword api_version: Api Version. Default value is "2025-05-01-preview". Note that overriding
3131
this default value may result in unsupported behavior.
3232
:paramtype api_version: str
3333
"""
@@ -37,6 +37,7 @@ def __init__( # pylint: disable=missing-client-constructor-parameter-credential
3737
) -> None:
3838
_endpoint = "{endpoint}/indexes('{indexName}')"
3939
self._config = SearchIndexClientConfiguration(endpoint=endpoint, index_name=index_name, **kwargs)
40+
4041
_policies = kwargs.pop("policies", None)
4142
if _policies is None:
4243
_policies = [

sdk/search/azure-search-documents/azure/search/documents/_generated/aio/operations/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
3-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.30.0)
3+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.34.1)
44
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
55
# --------------------------------------------------------------------------
66
# pylint: disable=wrong-import-position

0 commit comments

Comments
 (0)