File tree Expand file tree Collapse file tree 10 files changed +674
-116
lines changed
main/kotlin/com/openai/models
test/kotlin/com/openai/models/responses Expand file tree Collapse file tree 10 files changed +674
-116
lines changed Original file line number Diff line number Diff line change 1
1
configured_endpoints : 119
2
- openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-4bcdfe525558e67a09b32dec7a573e87b94bab47db3951eb4a86a4dafb60296c .yml
3
- openapi_spec_hash : 49e7e46bfe9f61b7b7a60e36840c0cd7
4
- config_hash : e4514526ae01126a61f9b6c14a351737
2
+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-ddbdf9343316047e8a773c54fb24e4a8d225955e202a1888fde6f9c8898ebf98 .yml
3
+ openapi_spec_hash : 9802f6dd381558466c897f6e387e06ca
4
+ config_hash : fe0ea26680ac2075a6cd66416aefe7db
Original file line number Diff line number Diff line change @@ -6221,6 +6221,17 @@ private constructor(
6221
6221
/* * Alias for calling [addTool] with `Tool.ofMcp(mcp)`. */
6222
6222
fun addTool (mcp : Tool .Mcp ) = addTool(Tool .ofMcp(mcp))
6223
6223
6224
+ /* *
6225
+ * Alias for calling [addTool] with the following:
6226
+ * ```java
6227
+ * Tool.Mcp.builder()
6228
+ * .serverLabel(serverLabel)
6229
+ * .build()
6230
+ * ```
6231
+ */
6232
+ fun addMcpTool (serverLabel : String ) =
6233
+ addTool(Tool .Mcp .builder().serverLabel(serverLabel).build())
6234
+
6224
6235
/* *
6225
6236
* Alias for calling [addTool] with `Tool.ofCodeInterpreter(codeInterpreter)`.
6226
6237
*/
Original file line number Diff line number Diff line change @@ -6106,6 +6106,17 @@ private constructor(
6106
6106
/* * Alias for calling [addTool] with `Tool.ofMcp(mcp)`. */
6107
6107
fun addTool (mcp : Tool .Mcp ) = addTool(Tool .ofMcp(mcp))
6108
6108
6109
+ /* *
6110
+ * Alias for calling [addTool] with the following:
6111
+ * ```java
6112
+ * Tool.Mcp.builder()
6113
+ * .serverLabel(serverLabel)
6114
+ * .build()
6115
+ * ```
6116
+ */
6117
+ fun addMcpTool (serverLabel : String ) =
6118
+ addTool(Tool .Mcp .builder().serverLabel(serverLabel).build())
6119
+
6109
6120
/* *
6110
6121
* Alias for calling [addTool] with `Tool.ofCodeInterpreter(codeInterpreter)`.
6111
6122
*/
Original file line number Diff line number Diff line change @@ -6221,6 +6221,17 @@ private constructor(
6221
6221
/* * Alias for calling [addTool] with `Tool.ofMcp(mcp)`. */
6222
6222
fun addTool (mcp : Tool .Mcp ) = addTool(Tool .ofMcp(mcp))
6223
6223
6224
+ /* *
6225
+ * Alias for calling [addTool] with the following:
6226
+ * ```java
6227
+ * Tool.Mcp.builder()
6228
+ * .serverLabel(serverLabel)
6229
+ * .build()
6230
+ * ```
6231
+ */
6232
+ fun addMcpTool (serverLabel : String ) =
6233
+ addTool(Tool .Mcp .builder().serverLabel(serverLabel).build())
6234
+
6224
6235
/* *
6225
6236
* Alias for calling [addTool] with `Tool.ofCodeInterpreter(codeInterpreter)`.
6226
6237
*/
Original file line number Diff line number Diff line change @@ -6221,6 +6221,17 @@ private constructor(
6221
6221
/* * Alias for calling [addTool] with `Tool.ofMcp(mcp)`. */
6222
6222
fun addTool (mcp : Tool .Mcp ) = addTool(Tool .ofMcp(mcp))
6223
6223
6224
+ /* *
6225
+ * Alias for calling [addTool] with the following:
6226
+ * ```java
6227
+ * Tool.Mcp.builder()
6228
+ * .serverLabel(serverLabel)
6229
+ * .build()
6230
+ * ```
6231
+ */
6232
+ fun addMcpTool (serverLabel : String ) =
6233
+ addTool(Tool .Mcp .builder().serverLabel(serverLabel).build())
6234
+
6224
6235
/* *
6225
6236
* Alias for calling [addTool] with `Tool.ofCodeInterpreter(codeInterpreter)`.
6226
6237
*/
Original file line number Diff line number Diff line change @@ -6221,6 +6221,17 @@ private constructor(
6221
6221
/* * Alias for calling [addTool] with `Tool.ofMcp(mcp)`. */
6222
6222
fun addTool (mcp : Tool .Mcp ) = addTool(Tool .ofMcp(mcp))
6223
6223
6224
+ /* *
6225
+ * Alias for calling [addTool] with the following:
6226
+ * ```java
6227
+ * Tool.Mcp.builder()
6228
+ * .serverLabel(serverLabel)
6229
+ * .build()
6230
+ * ```
6231
+ */
6232
+ fun addMcpTool (serverLabel : String ) =
6233
+ addTool(Tool .Mcp .builder().serverLabel(serverLabel).build())
6234
+
6224
6235
/* *
6225
6236
* Alias for calling [addTool] with `Tool.ofCodeInterpreter(codeInterpreter)`.
6226
6237
*/
Original file line number Diff line number Diff line change @@ -1237,6 +1237,17 @@ private constructor(
1237
1237
/* * Alias for calling [addTool] with `Tool.ofMcp(mcp)`. */
1238
1238
fun addTool (mcp : Tool .Mcp ) = addTool(Tool .ofMcp(mcp))
1239
1239
1240
+ /* *
1241
+ * Alias for calling [addTool] with the following:
1242
+ * ```java
1243
+ * Tool.Mcp.builder()
1244
+ * .serverLabel(serverLabel)
1245
+ * .build()
1246
+ * ```
1247
+ */
1248
+ fun addMcpTool (serverLabel : String ) =
1249
+ addTool(Tool .Mcp .builder().serverLabel(serverLabel).build())
1250
+
1240
1251
/* * Alias for calling [addTool] with `Tool.ofCodeInterpreter(codeInterpreter)`. */
1241
1252
fun addTool (codeInterpreter : Tool .CodeInterpreter ) =
1242
1253
addTool(Tool .ofCodeInterpreter(codeInterpreter))
Original file line number Diff line number Diff line change @@ -1219,6 +1219,16 @@ private constructor(
1219
1219
/* * Alias for calling [addTool] with `Tool.ofMcp(mcp)`. */
1220
1220
fun addTool (mcp : Tool .Mcp ) = apply { body.addTool(mcp) }
1221
1221
1222
+ /* *
1223
+ * Alias for calling [addTool] with the following:
1224
+ * ```java
1225
+ * Tool.Mcp.builder()
1226
+ * .serverLabel(serverLabel)
1227
+ * .build()
1228
+ * ```
1229
+ */
1230
+ fun addMcpTool (serverLabel : String ) = apply { body.addMcpTool(serverLabel) }
1231
+
1222
1232
/* * Alias for calling [addTool] with `Tool.ofCodeInterpreter(codeInterpreter)`. */
1223
1233
fun addTool (codeInterpreter : Tool .CodeInterpreter ) = apply { body.addTool(codeInterpreter) }
1224
1234
@@ -2859,6 +2869,17 @@ private constructor(
2859
2869
/* * Alias for calling [addTool] with `Tool.ofMcp(mcp)`. */
2860
2870
fun addTool (mcp : Tool .Mcp ) = addTool(Tool .ofMcp(mcp))
2861
2871
2872
+ /* *
2873
+ * Alias for calling [addTool] with the following:
2874
+ * ```java
2875
+ * Tool.Mcp.builder()
2876
+ * .serverLabel(serverLabel)
2877
+ * .build()
2878
+ * ```
2879
+ */
2880
+ fun addMcpTool (serverLabel : String ) =
2881
+ addTool(Tool .Mcp .builder().serverLabel(serverLabel).build())
2882
+
2862
2883
/* * Alias for calling [addTool] with `Tool.ofCodeInterpreter(codeInterpreter)`. */
2863
2884
fun addTool (codeInterpreter : Tool .CodeInterpreter ) =
2864
2885
addTool(Tool .ofCodeInterpreter(codeInterpreter))
You can’t perform that action at this time.
0 commit comments