Skip to content

Commit 7d16ed0

Browse files
author
SDKAuto
committed
CodeGen from PR 34627 in Azure/azure-rest-api-specs
Merge f70f1e5c06aec598e0f03a49e9203bfd9bb5cec5 into 38211e981ba3599aacfd72f5dbca16c7431bcfb1
1 parent b3bd27f commit 7d16ed0

File tree

19 files changed

+60
-10901
lines changed

19 files changed

+60
-10901
lines changed

sdk/ai/azure-ai-agents/_meta.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"commit": "3dd9eb300c152900aeb6036bb73da30889fb851c",
3+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4+
"typespec_src": "specification/ai/Azure.AI.Agents",
5+
"@azure-tools/typespec-python": "0.44.2"
6+
}

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

Lines changed: 7 additions & 976 deletions
Large diffs are not rendered by default.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# pylint: disable=line-too-long,useless-suppression
21
# coding=utf-8
32
# --------------------------------------------------------------------------
43
# Copyright (c) Microsoft Corporation. All rights reserved.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pylint: disable=line-too-long,useless-suppression,too-many-lines
1+
# pylint: disable=too-many-lines
22
# coding=utf-8
33
# --------------------------------------------------------------------------
44
# Copyright (c) Microsoft Corporation. All rights reserved.

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

Lines changed: 7 additions & 978 deletions
Large diffs are not rendered by default.

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
@@ -90,7 +90,7 @@
9090
build_vector_stores_list_request,
9191
build_vector_stores_modify_request,
9292
)
93-
from ...servicepatterns import models as _servicepatterns_models1
93+
from ...servicepatterns import models as _servicepatterns_models3
9494
from .._configuration import AgentsClientConfiguration
9595

9696
if TYPE_CHECKING:

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

Lines changed: 7 additions & 2272 deletions
Large diffs are not rendered by default.

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

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,8 @@ class AISearchIndexResource(_Model):
380380
"""A AI Search Index resource.
381381
382382
:ivar index_connection_id: An index connection id in an IndexResource attached to this agent.
383-
Required.
384383
:vartype index_connection_id: str
385-
:ivar index_name: The name of an index in an IndexResource attached to this agent. Required.
384+
:ivar index_name: The name of an index in an IndexResource attached to this agent.
386385
:vartype index_name: str
387386
:ivar query_type: Type of query in an AIIndexResource attached to this agent. Known values are:
388387
"simple", "semantic", "vector", "vector_simple_hybrid", and "vector_semantic_hybrid".
@@ -391,12 +390,14 @@ class AISearchIndexResource(_Model):
391390
:vartype top_k: int
392391
:ivar filter: filter string for search resource.
393392
:vartype filter: str
393+
:ivar index_asset_id: Index asset id for search resource.
394+
:vartype index_asset_id: str
394395
"""
395396

396-
index_connection_id: str = rest_field(visibility=["read", "create", "update", "delete", "query"])
397-
"""An index connection id in an IndexResource attached to this agent. Required."""
398-
index_name: str = rest_field(visibility=["read", "create", "update", "delete", "query"])
399-
"""The name of an index in an IndexResource attached to this agent. Required."""
397+
index_connection_id: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
398+
"""An index connection id in an IndexResource attached to this agent."""
399+
index_name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
400+
"""The name of an index in an IndexResource attached to this agent."""
400401
query_type: Optional[Union[str, "_models.AzureAISearchQueryType"]] = rest_field(
401402
visibility=["read", "create", "update", "delete", "query"]
402403
)
@@ -406,16 +407,19 @@ class AISearchIndexResource(_Model):
406407
"""Number of documents to retrieve from search and present to the model."""
407408
filter: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
408409
"""filter string for search resource."""
410+
index_asset_id: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
411+
"""Index asset id for search resource."""
409412

410413
@overload
411414
def __init__(
412415
self,
413416
*,
414-
index_connection_id: str,
415-
index_name: str,
417+
index_connection_id: Optional[str] = None,
418+
index_name: Optional[str] = None,
416419
query_type: Optional[Union[str, "_models.AzureAISearchQueryType"]] = None,
417420
top_k: Optional[int] = None,
418421
filter: Optional[str] = None, # pylint: disable=redefined-builtin
422+
index_asset_id: Optional[str] = None,
419423
) -> None: ...
420424

421425
@overload

0 commit comments

Comments
 (0)