Skip to content

Commit 2e0c1b9

Browse files
committed
Update SDK code ai_vi_0
1 parent 61b79d0 commit 2e0c1b9

File tree

386 files changed

+51367
-1767
lines changed

Some content is hidden

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

386 files changed

+51367
-1767
lines changed

sdk/ai/azure-ai-agents/azure/ai/agents/_patch.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=line-too-long,useless-suppression,too-many-lines
22
# ------------------------------------
33
# Copyright (c) Microsoft Corporation.
44
# Licensed under the MIT License.

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/models/_models.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,18 +1181,18 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
11811181
class DeepResearchDetails(_Model):
11821182
"""The details of the Deep Research tool.
11831183
1184-
:ivar deep_research_model: The deep research model deployment name. Required.
1185-
:vartype deep_research_model: str
1186-
:ivar deep_research_bing_grounding_connections: The array containing Bing grounding connection
1187-
IDs to enhance deep research capabilities. Required.
1188-
:vartype deep_research_bing_grounding_connections:
1184+
:ivar model: The deep research model deployment name. Required.
1185+
:vartype model: str
1186+
:ivar bing_grounding_connections: The array containing Bing grounding connection IDs to enhance
1187+
deep research capabilities. Required.
1188+
:vartype bing_grounding_connections:
11891189
list[~azure.ai.agents.models.DeepResearchBingGroundingConnection]
11901190
"""
11911191

1192-
deep_research_model: str = rest_field(visibility=["read", "create", "update", "delete", "query"])
1192+
model: str = rest_field(name="deep_research_model", visibility=["read", "create", "update", "delete", "query"])
11931193
"""The deep research model deployment name. Required."""
1194-
deep_research_bing_grounding_connections: List["_models.DeepResearchBingGroundingConnection"] = rest_field(
1195-
name="bing_grounding_connections", visibility=["read", "create", "update", "delete", "query"]
1194+
bing_grounding_connections: List["_models.DeepResearchBingGroundingConnection"] = rest_field(
1195+
visibility=["read", "create", "update", "delete", "query"]
11961196
)
11971197
"""The array containing Bing grounding connection IDs to enhance deep research capabilities.
11981198
Required."""
@@ -1201,8 +1201,8 @@ class DeepResearchDetails(_Model):
12011201
def __init__(
12021202
self,
12031203
*,
1204-
deep_research_model: str,
1205-
deep_research_bing_grounding_connections: List["_models.DeepResearchBingGroundingConnection"],
1204+
model: str,
1205+
bing_grounding_connections: List["_models.DeepResearchBingGroundingConnection"],
12061206
) -> None: ...
12071207

12081208
@overload

sdk/ai/azure-ai-agents/azure/ai/agents/operations/_operations.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/telemetry/_utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
ERROR_MESSAGE = "error.message"
5555
GEN_AI_SEMANTIC_CONVENTIONS_SCHEMA_VERSION = "1.34.0"
5656

57+
5758
class OperationName(Enum):
5859
CREATE_AGENT = "create_agent"
5960
CREATE_THREAD = "create_thread"
@@ -116,8 +117,9 @@ def start_span(
116117
if _span_impl_type is None:
117118
return None
118119

119-
120-
span = _span_impl_type(name=span_name or operation_name.value, kind=kind, schema_version=GEN_AI_SEMANTIC_CONVENTIONS_SCHEMA_VERSION)
120+
span = _span_impl_type(
121+
name=span_name or operation_name.value, kind=kind, schema_version=GEN_AI_SEMANTIC_CONVENTIONS_SCHEMA_VERSION
122+
)
121123

122124
if span and span.span_instance.is_recording:
123125
span.add_attribute(AZ_NAMESPACE, AZ_NAMESPACE_VALUE)

sdk/ai/azure-ai-agents/samples/agents_async/sample_agents_auto_function_call_async.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
12
# ------------------------------------
23
# Copyright (c) Microsoft Corporation.
34
# Licensed under the MIT License.

sdk/ai/azure-ai-agents/samples/agents_async/sample_agents_stream_eventhandler_with_mcp_async.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
allowed_tools=[], # Optional: specify allowed tools
6161
)
6262

63+
6364
class MyEventHandler(AsyncAgentEventHandler[str]):
6465

6566
def __init__(self, agents_client: AgentsClient) -> None:
@@ -143,9 +144,7 @@ async def main() -> None:
143144
print(f"Created thread, thread ID {thread.id}")
144145

145146
message = await agents_client.messages.create(
146-
thread_id=thread.id,
147-
role="user",
148-
content="Please summarize the Azure REST API specifications Readme"
147+
thread_id=thread.id, role="user", content="Please summarize the Azure REST API specifications Readme"
149148
)
150149
print(f"Created message, message ID {message.id}")
151150

sdk/ai/azure-ai-agents/samples/agents_response_formats/sample_agents_json_object_response_format.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
model=os.environ["MODEL_DEPLOYMENT_NAME"],
3939
name="my-agent",
4040
instructions="You are helpful agent. You will respond with a JSON object.",
41-
response_format=AgentsResponseFormat(type="json_object")
41+
response_format=AgentsResponseFormat(type="json_object"),
4242
)
4343
print(f"Created agent, agent ID: {agent.id}")
4444

@@ -48,7 +48,9 @@
4848
# List all threads for the agent
4949
threads = agents_client.threads.list()
5050

51-
message = agents_client.messages.create(thread_id=thread.id, role="user", content="Hello, give me a list of planets in our solar system.")
51+
message = agents_client.messages.create(
52+
thread_id=thread.id, role="user", content="Hello, give me a list of planets in our solar system."
53+
)
5254
print(f"Created message, message ID: {message.id}")
5355

5456
run = agents_client.runs.create_and_process(thread_id=thread.id, agent_id=agent.id)

sdk/ai/azure-ai-agents/samples/agents_response_formats/sample_agents_json_schema_response_format.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class Planets(str, Enum):
4343
Mars = "Mars"
4444
Mercury = "Mercury"
4545

46+
4647
class Planet(BaseModel):
4748
planet: Planets
4849
mass: float

0 commit comments

Comments
 (0)