Skip to content

Commit be956c7

Browse files
committed
Update SDK code ai_vi_0
1 parent c699dc3 commit be956c7

File tree

369 files changed

+51285
-1660
lines changed

Some content is hidden

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

369 files changed

+51285
-1660
lines changed

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/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_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

sdk/ai/azure-ai-agents/samples/agents_response_formats/sample_agents_text_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.",
41-
response_format=AgentsResponseFormat(type="text")
41+
response_format=AgentsResponseFormat(type="text"),
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_telemetry/sample_agents_basics_with_console_tracing_custom_attributes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ def on_start(self, span: Span, parent_context=None):
6464
def on_end(self, span: ReadableSpan):
6565
# Clean-up logic can be added here if necessary
6666
pass
67+
68+
6769
# [END custom_attribute_span_processor]
6870

6971
# Setup tracing to console

sdk/ai/azure-ai-agents/samples/agents_tools/sample_agents_auto_function_call.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.

0 commit comments

Comments
 (0)