Skip to content

Commit be82d42

Browse files
xitzhangXiting Zhang
andauthored
[VoiceLive] Release 1.0.0-beta2 (#47287)
* [VoiceLive] Release 1.0.0-beta2 * remove empty line * some format change by autogen --------- Co-authored-by: Xiting Zhang <[email protected]>
1 parent 23ce20c commit be82d42

14 files changed

+94
-122
lines changed

sdk/ai/azure-ai-voicelive/CHANGELOG.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 1.0.0-beta.2 (Unreleased)
3+
## 1.0.0-beta.2 (2025-11-14)
44

55
### Features Added
66

@@ -15,10 +15,6 @@
1515
- New `ToolType.MCP` for MCP-based tool definitions
1616
- New `ServerEventType` constants for MCP-related events
1717

18-
### Breaking Changes
19-
20-
### Bugs Fixed
21-
2218
### Other Changes
2319

2420
#### Dependency Updates

sdk/ai/azure-ai-voicelive/src/main/java/com/azure/ai/voicelive/models/MCPApprovalResponseRequestItem.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33
// Code generated by Microsoft (R) TypeSpec Code Generator.
4-
54
package com.azure.ai.voicelive.models;
65

76
import com.azure.core.annotation.Fluent;
@@ -16,6 +15,7 @@
1615
*/
1716
@Fluent
1817
public final class MCPApprovalResponseRequestItem extends ConversationRequestItem {
18+
1919
/*
2020
* The type property.
2121
*/
@@ -36,7 +36,7 @@ public final class MCPApprovalResponseRequestItem extends ConversationRequestIte
3636

3737
/**
3838
* Creates an instance of MCPApprovalResponseRequestItem class.
39-
*
39+
*
4040
* @param approvalRequestId the approvalRequestId value to set.
4141
* @param approve the approve value to set.
4242
*/
@@ -48,7 +48,7 @@ public MCPApprovalResponseRequestItem(String approvalRequestId, boolean approve)
4848

4949
/**
5050
* Get the type property: The type property.
51-
*
51+
*
5252
* @return the type value.
5353
*/
5454
@Generated
@@ -59,7 +59,7 @@ public ItemType getType() {
5959

6060
/**
6161
* Get the approvalRequestId property: The ID of the approval request.
62-
*
62+
*
6363
* @return the approvalRequestId value.
6464
*/
6565
@Generated
@@ -69,7 +69,7 @@ public String getApprovalRequestId() {
6969

7070
/**
7171
* Get the approve property: Whether the tool call was approved.
72-
*
72+
*
7373
* @return the approve value.
7474
*/
7575
@Generated
@@ -103,7 +103,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
103103

104104
/**
105105
* Reads an instance of MCPApprovalResponseRequestItem from the JsonReader.
106-
*
106+
*
107107
* @param jsonReader The JsonReader being read.
108108
* @return An instance of MCPApprovalResponseRequestItem if the JsonReader was pointing to an instance of it, or
109109
* null if it was pointing to JSON null.
@@ -120,7 +120,6 @@ public static MCPApprovalResponseRequestItem fromJson(JsonReader jsonReader) thr
120120
while (reader.nextToken() != JsonToken.END_OBJECT) {
121121
String fieldName = reader.getFieldName();
122122
reader.nextToken();
123-
124123
if ("id".equals(fieldName)) {
125124
id = reader.getString();
126125
} else if ("approval_request_id".equals(fieldName)) {
@@ -137,7 +136,6 @@ public static MCPApprovalResponseRequestItem fromJson(JsonReader jsonReader) thr
137136
= new MCPApprovalResponseRequestItem(approvalRequestId, approve);
138137
deserializedMCPApprovalResponseRequestItem.setId(id);
139138
deserializedMCPApprovalResponseRequestItem.type = type;
140-
141139
return deserializedMCPApprovalResponseRequestItem;
142140
});
143141
}

sdk/ai/azure-ai-voicelive/src/main/java/com/azure/ai/voicelive/models/MCPApprovalType.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33
// Code generated by Microsoft (R) TypeSpec Code Generator.
4-
54
package com.azure.ai.voicelive.models;
65

76
import com.azure.core.annotation.Generated;
@@ -12,6 +11,7 @@
1211
* The available set of MCP approval types.
1312
*/
1413
public final class MCPApprovalType extends ExpandableStringEnum<MCPApprovalType> {
14+
1515
/**
1616
* Approval is never required.
1717
*/
@@ -26,7 +26,7 @@ public final class MCPApprovalType extends ExpandableStringEnum<MCPApprovalType>
2626

2727
/**
2828
* Creates a new instance of MCPApprovalType value.
29-
*
29+
*
3030
* @deprecated Use the {@link #fromString(String)} factory method.
3131
*/
3232
@Generated
@@ -36,7 +36,7 @@ public MCPApprovalType() {
3636

3737
/**
3838
* Creates or finds a MCPApprovalType from its string representation.
39-
*
39+
*
4040
* @param name a name to look for.
4141
* @return the corresponding MCPApprovalType.
4242
*/
@@ -47,7 +47,7 @@ public static MCPApprovalType fromString(String name) {
4747

4848
/**
4949
* Gets known MCPApprovalType values.
50-
*
50+
*
5151
* @return known MCPApprovalType values.
5252
*/
5353
@Generated

sdk/ai/azure-ai-voicelive/src/main/java/com/azure/ai/voicelive/models/MCPServer.java

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33
// Code generated by Microsoft (R) TypeSpec Code Generator.
4-
54
package com.azure.ai.voicelive.models;
65

76
import com.azure.core.annotation.Fluent;
@@ -19,6 +18,7 @@
1918
*/
2019
@Fluent
2120
public final class MCPServer extends VoiceLiveToolDefinition {
21+
2222
/*
2323
* The type property.
2424
*/
@@ -63,7 +63,7 @@ public final class MCPServer extends VoiceLiveToolDefinition {
6363

6464
/**
6565
* Creates an instance of MCPServer class.
66-
*
66+
*
6767
* @param serverLabel the serverLabel value to set.
6868
* @param serverUrl the serverUrl value to set.
6969
*/
@@ -75,7 +75,7 @@ public MCPServer(String serverLabel, String serverUrl) {
7575

7676
/**
7777
* Get the type property: The type property.
78-
*
78+
*
7979
* @return the type value.
8080
*/
8181
@Generated
@@ -86,7 +86,7 @@ public ToolType getType() {
8686

8787
/**
8888
* Get the serverLabel property: The server_label property.
89-
*
89+
*
9090
* @return the serverLabel value.
9191
*/
9292
@Generated
@@ -96,7 +96,7 @@ public String getServerLabel() {
9696

9797
/**
9898
* Get the serverUrl property: The server_url property.
99-
*
99+
*
100100
* @return the serverUrl value.
101101
*/
102102
@Generated
@@ -106,7 +106,7 @@ public String getServerUrl() {
106106

107107
/**
108108
* Get the authorization property: The authorization property.
109-
*
109+
*
110110
* @return the authorization value.
111111
*/
112112
@Generated
@@ -116,7 +116,7 @@ public String getAuthorization() {
116116

117117
/**
118118
* Set the authorization property: The authorization property.
119-
*
119+
*
120120
* @param authorization the authorization value to set.
121121
* @return the MCPServer object itself.
122122
*/
@@ -128,7 +128,7 @@ public MCPServer setAuthorization(String authorization) {
128128

129129
/**
130130
* Get the headers property: The headers property.
131-
*
131+
*
132132
* @return the headers value.
133133
*/
134134
@Generated
@@ -138,7 +138,7 @@ public Map<String, String> getHeaders() {
138138

139139
/**
140140
* Set the headers property: The headers property.
141-
*
141+
*
142142
* @param headers the headers value to set.
143143
* @return the MCPServer object itself.
144144
*/
@@ -150,7 +150,7 @@ public MCPServer setHeaders(Map<String, String> headers) {
150150

151151
/**
152152
* Get the allowedTools property: The allowed_tools property.
153-
*
153+
*
154154
* @return the allowedTools value.
155155
*/
156156
@Generated
@@ -160,7 +160,7 @@ public List<String> getAllowedTools() {
160160

161161
/**
162162
* Set the allowedTools property: The allowed_tools property.
163-
*
163+
*
164164
* @param allowedTools the allowedTools value to set.
165165
* @return the MCPServer object itself.
166166
*/
@@ -172,7 +172,7 @@ public MCPServer setAllowedTools(List<String> allowedTools) {
172172

173173
/**
174174
* Get the requireApproval property: The require_approval property.
175-
*
175+
*
176176
* @return the requireApproval value.
177177
*/
178178
@Generated
@@ -182,7 +182,7 @@ public BinaryData getRequireApproval() {
182182

183183
/**
184184
* Set the requireApproval property: The require_approval property.
185-
*
185+
*
186186
* @param requireApproval the requireApproval value to set.
187187
* @return the MCPServer object itself.
188188
*/
@@ -215,7 +215,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
215215

216216
/**
217217
* Reads an instance of MCPServer from the JsonReader.
218-
*
218+
*
219219
* @param jsonReader The JsonReader being read.
220220
* @return An instance of MCPServer if the JsonReader was pointing to an instance of it, or null if it was pointing
221221
* to JSON null.
@@ -235,7 +235,6 @@ public static MCPServer fromJson(JsonReader jsonReader) throws IOException {
235235
while (reader.nextToken() != JsonToken.END_OBJECT) {
236236
String fieldName = reader.getFieldName();
237237
reader.nextToken();
238-
239238
if ("server_label".equals(fieldName)) {
240239
serverLabel = reader.getString();
241240
} else if ("server_url".equals(fieldName)) {
@@ -261,7 +260,6 @@ public static MCPServer fromJson(JsonReader jsonReader) throws IOException {
261260
deserializedMCPServer.headers = headers;
262261
deserializedMCPServer.allowedTools = allowedTools;
263262
deserializedMCPServer.requireApproval = requireApproval;
264-
265263
return deserializedMCPServer;
266264
});
267265
}

sdk/ai/azure-ai-voicelive/src/main/java/com/azure/ai/voicelive/models/MCPTool.java

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33
// Code generated by Microsoft (R) TypeSpec Code Generator.
4-
54
package com.azure.ai.voicelive.models;
65

76
import com.azure.core.annotation.Generated;
@@ -18,6 +17,7 @@
1817
*/
1918
@Immutable
2019
public final class MCPTool implements JsonSerializable<MCPTool> {
20+
2121
/*
2222
* The name of the tool.
2323
*/
@@ -44,7 +44,7 @@ public final class MCPTool implements JsonSerializable<MCPTool> {
4444

4545
/**
4646
* Creates an instance of MCPTool class.
47-
*
47+
*
4848
* @param name the name value to set.
4949
* @param inputSchema the inputSchema value to set.
5050
*/
@@ -56,7 +56,7 @@ private MCPTool(String name, BinaryData inputSchema) {
5656

5757
/**
5858
* Get the name property: The name of the tool.
59-
*
59+
*
6060
* @return the name value.
6161
*/
6262
@Generated
@@ -66,7 +66,7 @@ public String getName() {
6666

6767
/**
6868
* Get the description property: The description of the tool.
69-
*
69+
*
7070
* @return the description value.
7171
*/
7272
@Generated
@@ -76,7 +76,7 @@ public String getDescription() {
7676

7777
/**
7878
* Get the inputSchema property: The input schema for the tool.
79-
*
79+
*
8080
* @return the inputSchema value.
8181
*/
8282
@Generated
@@ -86,7 +86,7 @@ public BinaryData getInputSchema() {
8686

8787
/**
8888
* Get the annotations property: The annotations for the tool.
89-
*
89+
*
9090
* @return the annotations value.
9191
*/
9292
@Generated
@@ -114,7 +114,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
114114

115115
/**
116116
* Reads an instance of MCPTool from the JsonReader.
117-
*
117+
*
118118
* @param jsonReader The JsonReader being read.
119119
* @return An instance of MCPTool if the JsonReader was pointing to an instance of it, or null if it was pointing to
120120
* JSON null.
@@ -131,7 +131,6 @@ public static MCPTool fromJson(JsonReader jsonReader) throws IOException {
131131
while (reader.nextToken() != JsonToken.END_OBJECT) {
132132
String fieldName = reader.getFieldName();
133133
reader.nextToken();
134-
135134
if ("name".equals(fieldName)) {
136135
name = reader.getString();
137136
} else if ("input_schema".equals(fieldName)) {
@@ -149,7 +148,6 @@ public static MCPTool fromJson(JsonReader jsonReader) throws IOException {
149148
MCPTool deserializedMCPTool = new MCPTool(name, inputSchema);
150149
deserializedMCPTool.description = description;
151150
deserializedMCPTool.annotations = annotations;
152-
153151
return deserializedMCPTool;
154152
});
155153
}

0 commit comments

Comments
 (0)