oci-generativeaiagent 2.105.0 → 2.106.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/lib/client.d.ts +50 -0
  2. package/lib/client.js +337 -0
  3. package/lib/client.js.map +1 -1
  4. package/lib/generativeaiagent-waiter.d.ts +8 -0
  5. package/lib/generativeaiagent-waiter.js +12 -0
  6. package/lib/generativeaiagent-waiter.js.map +1 -1
  7. package/lib/model/agent-endpoint-summary.d.ts +13 -0
  8. package/lib/model/agent-endpoint-summary.js +18 -0
  9. package/lib/model/agent-endpoint-summary.js.map +1 -1
  10. package/lib/model/agent-endpoint.d.ts +13 -0
  11. package/lib/model/agent-endpoint.js +18 -0
  12. package/lib/model/agent-endpoint.js.map +1 -1
  13. package/lib/model/agent-summary.d.ts +3 -1
  14. package/lib/model/agent-summary.js +28 -2
  15. package/lib/model/agent-summary.js.map +1 -1
  16. package/lib/model/agent.d.ts +3 -1
  17. package/lib/model/agent.js +28 -2
  18. package/lib/model/agent.js.map +1 -1
  19. package/lib/model/api-schema-inline-input-location.d.ts +37 -0
  20. package/lib/model/api-schema-inline-input-location.js +63 -0
  21. package/lib/model/api-schema-inline-input-location.js.map +1 -0
  22. package/lib/model/api-schema-input-location.d.ts +31 -0
  23. package/lib/model/api-schema-input-location.js +81 -0
  24. package/lib/model/api-schema-input-location.js.map +1 -0
  25. package/lib/model/api-schema-object-storage-input-location.d.ts +46 -0
  26. package/lib/model/api-schema-object-storage-input-location.js +63 -0
  27. package/lib/model/api-schema-object-storage-input-location.js.map +1 -0
  28. package/lib/model/content-moderation-guardrail-config.d.ts +39 -0
  29. package/lib/model/content-moderation-guardrail-config.js +38 -0
  30. package/lib/model/content-moderation-guardrail-config.js.map +1 -0
  31. package/lib/model/create-agent-details.d.ts +3 -1
  32. package/lib/model/create-agent-details.js +28 -2
  33. package/lib/model/create-agent-details.js.map +1 -1
  34. package/lib/model/create-agent-endpoint-details.d.ts +13 -0
  35. package/lib/model/create-agent-endpoint-details.js +18 -0
  36. package/lib/model/create-agent-endpoint-details.js.map +1 -1
  37. package/lib/model/create-data-source-details.d.ts +6 -0
  38. package/lib/model/create-data-source-details.js.map +1 -1
  39. package/lib/model/create-tool-details.d.ts +77 -0
  40. package/lib/model/create-tool-details.js +64 -0
  41. package/lib/model/create-tool-details.js.map +1 -0
  42. package/lib/model/data-source.d.ts +6 -0
  43. package/lib/model/data-source.js.map +1 -1
  44. package/lib/model/function-calling-tool-config.d.ts +35 -0
  45. package/lib/model/function-calling-tool-config.js +65 -0
  46. package/lib/model/function-calling-tool-config.js.map +1 -0
  47. package/lib/model/function.d.ts +46 -0
  48. package/lib/model/function.js +38 -0
  49. package/lib/model/function.js.map +1 -0
  50. package/lib/model/guardrail-config.d.ts +34 -0
  51. package/lib/model/guardrail-config.js +78 -0
  52. package/lib/model/guardrail-config.js.map +1 -0
  53. package/lib/model/guardrail-mode.d.ts +38 -0
  54. package/lib/model/guardrail-mode.js +49 -0
  55. package/lib/model/guardrail-mode.js.map +1 -0
  56. package/lib/model/http-endpoint-auth-config.d.ts +32 -0
  57. package/lib/model/http-endpoint-auth-config.js +89 -0
  58. package/lib/model/http-endpoint-auth-config.js.map +1 -0
  59. package/lib/model/http-endpoint-delegated-bearer-auth-config.d.ts +35 -0
  60. package/lib/model/http-endpoint-delegated-bearer-auth-config.js +63 -0
  61. package/lib/model/http-endpoint-delegated-bearer-auth-config.js.map +1 -0
  62. package/lib/model/http-endpoint-idcs-auth-config.d.ts +35 -0
  63. package/lib/model/http-endpoint-idcs-auth-config.js +69 -0
  64. package/lib/model/http-endpoint-idcs-auth-config.js.map +1 -0
  65. package/lib/model/http-endpoint-no-auth-config.d.ts +34 -0
  66. package/lib/model/http-endpoint-no-auth-config.js +63 -0
  67. package/lib/model/http-endpoint-no-auth-config.js.map +1 -0
  68. package/lib/model/http-endpoint-oci-resource-principal-auth-config.d.ts +34 -0
  69. package/lib/model/http-endpoint-oci-resource-principal-auth-config.js +63 -0
  70. package/lib/model/http-endpoint-oci-resource-principal-auth-config.js.map +1 -0
  71. package/lib/model/http-endpoint-tool-config.d.ts +40 -0
  72. package/lib/model/http-endpoint-tool-config.js +75 -0
  73. package/lib/model/http-endpoint-tool-config.js.map +1 -0
  74. package/lib/model/human-input-config.d.ts +35 -0
  75. package/lib/model/human-input-config.js +38 -0
  76. package/lib/model/human-input-config.js.map +1 -0
  77. package/lib/model/index.d.ts +68 -0
  78. package/lib/model/index.js +70 -2
  79. package/lib/model/index.js.map +1 -1
  80. package/lib/model/inline-input-location.d.ts +37 -0
  81. package/lib/model/inline-input-location.js +61 -0
  82. package/lib/model/inline-input-location.js.map +1 -0
  83. package/lib/model/input-location.d.ts +31 -0
  84. package/lib/model/input-location.js +81 -0
  85. package/lib/model/input-location.js.map +1 -0
  86. package/lib/model/knowledge-base-config.d.ts +35 -0
  87. package/lib/model/knowledge-base-config.js +38 -0
  88. package/lib/model/knowledge-base-config.js.map +1 -0
  89. package/lib/model/llm-config.d.ts +33 -0
  90. package/lib/model/llm-config.js +66 -0
  91. package/lib/model/llm-config.js.map +1 -0
  92. package/lib/model/llm-customization.d.ts +35 -0
  93. package/lib/model/llm-customization.js +38 -0
  94. package/lib/model/llm-customization.js.map +1 -0
  95. package/lib/model/object-storage-input-location.d.ts +46 -0
  96. package/lib/model/object-storage-input-location.js +63 -0
  97. package/lib/model/object-storage-input-location.js.map +1 -0
  98. package/lib/model/object-storage-prefix-output-location.d.ts +46 -0
  99. package/lib/model/object-storage-prefix-output-location.js +63 -0
  100. package/lib/model/object-storage-prefix-output-location.js.map +1 -0
  101. package/lib/model/object-storage-prefix.d.ts +1 -1
  102. package/lib/model/operation-type.d.ts +4 -0
  103. package/lib/model/operation-type.js +4 -0
  104. package/lib/model/operation-type.js.map +1 -1
  105. package/lib/model/output-config.d.ts +37 -0
  106. package/lib/model/output-config.js +66 -0
  107. package/lib/model/output-config.js.map +1 -0
  108. package/lib/model/output-location.d.ts +32 -0
  109. package/lib/model/output-location.js +77 -0
  110. package/lib/model/output-location.js.map +1 -0
  111. package/lib/model/personally-identifiable-information-guardrail-config.d.ts +39 -0
  112. package/lib/model/personally-identifiable-information-guardrail-config.js +38 -0
  113. package/lib/model/personally-identifiable-information-guardrail-config.js.map +1 -0
  114. package/lib/model/prompt-injection-guardrail-config.d.ts +35 -0
  115. package/lib/model/prompt-injection-guardrail-config.js +38 -0
  116. package/lib/model/prompt-injection-guardrail-config.js.map +1 -0
  117. package/lib/model/rag-tool-config.d.ts +39 -0
  118. package/lib/model/rag-tool-config.js +77 -0
  119. package/lib/model/rag-tool-config.js.map +1 -0
  120. package/lib/model/sql-tool-config.d.ts +73 -0
  121. package/lib/model/sql-tool-config.js +111 -0
  122. package/lib/model/sql-tool-config.js.map +1 -0
  123. package/lib/model/tool-collection.d.ts +36 -0
  124. package/lib/model/tool-collection.js +70 -0
  125. package/lib/model/tool-collection.js.map +1 -0
  126. package/lib/model/tool-config.d.ts +32 -0
  127. package/lib/model/tool-config.js +89 -0
  128. package/lib/model/tool-config.js.map +1 -0
  129. package/lib/model/tool-summary.d.ts +110 -0
  130. package/lib/model/tool-summary.js +64 -0
  131. package/lib/model/tool-summary.js.map +1 -0
  132. package/lib/model/tool.d.ts +125 -0
  133. package/lib/model/tool.js +78 -0
  134. package/lib/model/tool.js.map +1 -0
  135. package/lib/model/update-agent-details.d.ts +3 -1
  136. package/lib/model/update-agent-details.js +28 -2
  137. package/lib/model/update-agent-details.js.map +1 -1
  138. package/lib/model/update-agent-endpoint-details.d.ts +13 -0
  139. package/lib/model/update-agent-endpoint-details.js +18 -0
  140. package/lib/model/update-agent-endpoint-details.js.map +1 -1
  141. package/lib/model/update-data-source-details.d.ts +6 -0
  142. package/lib/model/update-data-source-details.js.map +1 -1
  143. package/lib/model/update-tool-details.d.ts +69 -0
  144. package/lib/model/update-tool-details.js +64 -0
  145. package/lib/model/update-tool-details.js.map +1 -0
  146. package/lib/request/create-tool-request.d.ts +40 -0
  147. package/lib/request/create-tool-request.js +15 -0
  148. package/lib/request/create-tool-request.js.map +1 -0
  149. package/lib/request/delete-tool-request.d.ts +38 -0
  150. package/lib/request/delete-tool-request.js +15 -0
  151. package/lib/request/delete-tool-request.js.map +1 -0
  152. package/lib/request/get-tool-request.d.ts +30 -0
  153. package/lib/request/get-tool-request.js +15 -0
  154. package/lib/request/get-tool-request.js.map +1 -0
  155. package/lib/request/index.d.ts +10 -0
  156. package/lib/request/index.js +3 -1
  157. package/lib/request/index.js.map +1 -1
  158. package/lib/request/list-tools-request.d.ts +75 -0
  159. package/lib/request/list-tools-request.js +24 -0
  160. package/lib/request/list-tools-request.js.map +1 -0
  161. package/lib/request/update-tool-request.d.ts +43 -0
  162. package/lib/request/update-tool-request.js +15 -0
  163. package/lib/request/update-tool-request.js.map +1 -0
  164. package/lib/response/create-tool-response.d.ts +44 -0
  165. package/lib/response/create-tool-response.js +15 -0
  166. package/lib/response/create-tool-response.js.map +1 -0
  167. package/lib/response/delete-tool-response.d.ts +26 -0
  168. package/lib/response/delete-tool-response.js +15 -0
  169. package/lib/response/delete-tool-response.js.map +1 -0
  170. package/lib/response/get-tool-response.d.ts +30 -0
  171. package/lib/response/get-tool-response.js +15 -0
  172. package/lib/response/get-tool-response.js.map +1 -0
  173. package/lib/response/index.d.ts +10 -0
  174. package/lib/response/list-tools-response.d.ts +31 -0
  175. package/lib/response/list-tools-response.js +15 -0
  176. package/lib/response/list-tools-response.js.map +1 -0
  177. package/lib/response/update-tool-response.d.ts +26 -0
  178. package/lib/response/update-tool-response.js +15 -0
  179. package/lib/response/update-tool-response.js.map +1 -0
  180. package/package.json +3 -3
package/lib/client.d.ts CHANGED
@@ -196,6 +196,16 @@ export declare class GenerativeAiAgentClient {
196
196
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagent/CreateKnowledgeBase.ts.html |here} to see how to use CreateKnowledgeBase API.
197
197
  */
198
198
  createKnowledgeBase(createKnowledgeBaseRequest: requests.CreateKnowledgeBaseRequest): Promise<responses.CreateKnowledgeBaseResponse>;
199
+ /**
200
+ * Creates a tool.
201
+ *
202
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
203
+ * @param CreateToolRequest
204
+ * @return CreateToolResponse
205
+ * @throws OciError when an error occurs
206
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagent/CreateTool.ts.html |here} to see how to use CreateTool API.
207
+ */
208
+ createTool(createToolRequest: requests.CreateToolRequest): Promise<responses.CreateToolResponse>;
199
209
  /**
200
210
  * Deletes an agent.
201
211
  *
@@ -246,6 +256,16 @@ export declare class GenerativeAiAgentClient {
246
256
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagent/DeleteKnowledgeBase.ts.html |here} to see how to use DeleteKnowledgeBase API.
247
257
  */
248
258
  deleteKnowledgeBase(deleteKnowledgeBaseRequest: requests.DeleteKnowledgeBaseRequest): Promise<responses.DeleteKnowledgeBaseResponse>;
259
+ /**
260
+ * Deletes a tool.
261
+ *
262
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
263
+ * @param DeleteToolRequest
264
+ * @return DeleteToolResponse
265
+ * @throws OciError when an error occurs
266
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagent/DeleteTool.ts.html |here} to see how to use DeleteTool API.
267
+ */
268
+ deleteTool(deleteToolRequest: requests.DeleteToolRequest): Promise<responses.DeleteToolResponse>;
249
269
  /**
250
270
  * Gets information about an agent.
251
271
  *
@@ -306,6 +326,16 @@ export declare class GenerativeAiAgentClient {
306
326
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagent/GetKnowledgeBase.ts.html |here} to see how to use GetKnowledgeBase API.
307
327
  */
308
328
  getKnowledgeBase(getKnowledgeBaseRequest: requests.GetKnowledgeBaseRequest): Promise<responses.GetKnowledgeBaseResponse>;
329
+ /**
330
+ * Gets information about a tool.
331
+ *
332
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
333
+ * @param GetToolRequest
334
+ * @return GetToolResponse
335
+ * @throws OciError when an error occurs
336
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagent/GetTool.ts.html |here} to see how to use GetTool API.
337
+ */
338
+ getTool(getToolRequest: requests.GetToolRequest): Promise<responses.GetToolResponse>;
309
339
  /**
310
340
  * Gets the details of a work request.
311
341
  *
@@ -366,6 +396,16 @@ export declare class GenerativeAiAgentClient {
366
396
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagent/ListKnowledgeBases.ts.html |here} to see how to use ListKnowledgeBases API.
367
397
  */
368
398
  listKnowledgeBases(listKnowledgeBasesRequest: requests.ListKnowledgeBasesRequest): Promise<responses.ListKnowledgeBasesResponse>;
399
+ /**
400
+ * Gets a list of tools.
401
+ *
402
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
403
+ * @param ListToolsRequest
404
+ * @return ListToolsResponse
405
+ * @throws OciError when an error occurs
406
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagent/ListTools.ts.html |here} to see how to use ListTools API.
407
+ */
408
+ listTools(listToolsRequest: requests.ListToolsRequest): Promise<responses.ListToolsResponse>;
369
409
  /**
370
410
  * Lists the errors for a work request.
371
411
  *
@@ -436,5 +476,15 @@ export declare class GenerativeAiAgentClient {
436
476
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagent/UpdateKnowledgeBase.ts.html |here} to see how to use UpdateKnowledgeBase API.
437
477
  */
438
478
  updateKnowledgeBase(updateKnowledgeBaseRequest: requests.UpdateKnowledgeBaseRequest): Promise<responses.UpdateKnowledgeBaseResponse>;
479
+ /**
480
+ * Updates a tool.
481
+ *
482
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
483
+ * @param UpdateToolRequest
484
+ * @return UpdateToolResponse
485
+ * @throws OciError when an error occurs
486
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagent/UpdateTool.ts.html |here} to see how to use UpdateTool API.
487
+ */
488
+ updateTool(updateToolRequest: requests.UpdateToolRequest): Promise<responses.UpdateToolResponse>;
439
489
  }
440
490
  export {};
package/lib/client.js CHANGED
@@ -859,6 +859,85 @@ class GenerativeAiAgentClient {
859
859
  }
860
860
  });
861
861
  }
862
+ /**
863
+ * Creates a tool.
864
+ *
865
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
866
+ * @param CreateToolRequest
867
+ * @return CreateToolResponse
868
+ * @throws OciError when an error occurs
869
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagent/CreateTool.ts.html |here} to see how to use CreateTool API.
870
+ */
871
+ createTool(createToolRequest) {
872
+ return __awaiter(this, void 0, void 0, function* () {
873
+ if (this.logger)
874
+ this.logger.debug("Calling operation GenerativeAiAgentClient#createTool.");
875
+ const operationName = "createTool";
876
+ const apiReferenceLink = "";
877
+ const pathParams = {};
878
+ const queryParams = {};
879
+ let headerParams = {
880
+ "Content-Type": common.Constants.APPLICATION_JSON,
881
+ "opc-retry-token": createToolRequest.opcRetryToken,
882
+ "opc-request-id": createToolRequest.opcRequestId
883
+ };
884
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
885
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createToolRequest.retryConfiguration, specRetryConfiguration);
886
+ if (this.logger)
887
+ retrier.logger = this.logger;
888
+ const request = yield oci_common_1.composeRequest({
889
+ baseEndpoint: this._endpoint,
890
+ defaultHeaders: this._defaultHeaders,
891
+ path: "/tools",
892
+ method: "POST",
893
+ bodyContent: common.ObjectSerializer.serialize(createToolRequest.createToolDetails, "CreateToolDetails", model.CreateToolDetails.getJsonObj),
894
+ pathParams: pathParams,
895
+ headerParams: headerParams,
896
+ queryParams: queryParams
897
+ });
898
+ try {
899
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
900
+ const sdkResponse = oci_common_1.composeResponse({
901
+ responseObject: {},
902
+ body: yield response.json(),
903
+ bodyKey: "tool",
904
+ bodyModel: model.Tool,
905
+ type: "model.Tool",
906
+ responseHeaders: [
907
+ {
908
+ value: response.headers.get("location"),
909
+ key: "location",
910
+ dataType: "string"
911
+ },
912
+ {
913
+ value: response.headers.get("content-location"),
914
+ key: "contentLocation",
915
+ dataType: "string"
916
+ },
917
+ {
918
+ value: response.headers.get("etag"),
919
+ key: "etag",
920
+ dataType: "string"
921
+ },
922
+ {
923
+ value: response.headers.get("opc-work-request-id"),
924
+ key: "opcWorkRequestId",
925
+ dataType: "string"
926
+ },
927
+ {
928
+ value: response.headers.get("opc-request-id"),
929
+ key: "opcRequestId",
930
+ dataType: "string"
931
+ }
932
+ ]
933
+ });
934
+ return sdkResponse;
935
+ }
936
+ catch (err) {
937
+ throw err;
938
+ }
939
+ });
940
+ }
862
941
  /**
863
942
  * Deletes an agent.
864
943
  *
@@ -1164,6 +1243,67 @@ class GenerativeAiAgentClient {
1164
1243
  }
1165
1244
  });
1166
1245
  }
1246
+ /**
1247
+ * Deletes a tool.
1248
+ *
1249
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1250
+ * @param DeleteToolRequest
1251
+ * @return DeleteToolResponse
1252
+ * @throws OciError when an error occurs
1253
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagent/DeleteTool.ts.html |here} to see how to use DeleteTool API.
1254
+ */
1255
+ deleteTool(deleteToolRequest) {
1256
+ return __awaiter(this, void 0, void 0, function* () {
1257
+ if (this.logger)
1258
+ this.logger.debug("Calling operation GenerativeAiAgentClient#deleteTool.");
1259
+ const operationName = "deleteTool";
1260
+ const apiReferenceLink = "";
1261
+ const pathParams = {
1262
+ "{toolId}": deleteToolRequest.toolId
1263
+ };
1264
+ const queryParams = {};
1265
+ let headerParams = {
1266
+ "Content-Type": common.Constants.APPLICATION_JSON,
1267
+ "if-match": deleteToolRequest.ifMatch,
1268
+ "opc-request-id": deleteToolRequest.opcRequestId
1269
+ };
1270
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1271
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteToolRequest.retryConfiguration, specRetryConfiguration);
1272
+ if (this.logger)
1273
+ retrier.logger = this.logger;
1274
+ const request = yield oci_common_1.composeRequest({
1275
+ baseEndpoint: this._endpoint,
1276
+ defaultHeaders: this._defaultHeaders,
1277
+ path: "/tools/{toolId}",
1278
+ method: "DELETE",
1279
+ pathParams: pathParams,
1280
+ headerParams: headerParams,
1281
+ queryParams: queryParams
1282
+ });
1283
+ try {
1284
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1285
+ const sdkResponse = oci_common_1.composeResponse({
1286
+ responseObject: {},
1287
+ responseHeaders: [
1288
+ {
1289
+ value: response.headers.get("opc-work-request-id"),
1290
+ key: "opcWorkRequestId",
1291
+ dataType: "string"
1292
+ },
1293
+ {
1294
+ value: response.headers.get("opc-request-id"),
1295
+ key: "opcRequestId",
1296
+ dataType: "string"
1297
+ }
1298
+ ]
1299
+ });
1300
+ return sdkResponse;
1301
+ }
1302
+ catch (err) {
1303
+ throw err;
1304
+ }
1305
+ });
1306
+ }
1167
1307
  /**
1168
1308
  * Gets information about an agent.
1169
1309
  *
@@ -1542,6 +1682,70 @@ class GenerativeAiAgentClient {
1542
1682
  }
1543
1683
  });
1544
1684
  }
1685
+ /**
1686
+ * Gets information about a tool.
1687
+ *
1688
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1689
+ * @param GetToolRequest
1690
+ * @return GetToolResponse
1691
+ * @throws OciError when an error occurs
1692
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagent/GetTool.ts.html |here} to see how to use GetTool API.
1693
+ */
1694
+ getTool(getToolRequest) {
1695
+ return __awaiter(this, void 0, void 0, function* () {
1696
+ if (this.logger)
1697
+ this.logger.debug("Calling operation GenerativeAiAgentClient#getTool.");
1698
+ const operationName = "getTool";
1699
+ const apiReferenceLink = "";
1700
+ const pathParams = {
1701
+ "{toolId}": getToolRequest.toolId
1702
+ };
1703
+ const queryParams = {};
1704
+ let headerParams = {
1705
+ "Content-Type": common.Constants.APPLICATION_JSON,
1706
+ "opc-request-id": getToolRequest.opcRequestId
1707
+ };
1708
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1709
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getToolRequest.retryConfiguration, specRetryConfiguration);
1710
+ if (this.logger)
1711
+ retrier.logger = this.logger;
1712
+ const request = yield oci_common_1.composeRequest({
1713
+ baseEndpoint: this._endpoint,
1714
+ defaultHeaders: this._defaultHeaders,
1715
+ path: "/tools/{toolId}",
1716
+ method: "GET",
1717
+ pathParams: pathParams,
1718
+ headerParams: headerParams,
1719
+ queryParams: queryParams
1720
+ });
1721
+ try {
1722
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1723
+ const sdkResponse = oci_common_1.composeResponse({
1724
+ responseObject: {},
1725
+ body: yield response.json(),
1726
+ bodyKey: "tool",
1727
+ bodyModel: model.Tool,
1728
+ type: "model.Tool",
1729
+ responseHeaders: [
1730
+ {
1731
+ value: response.headers.get("etag"),
1732
+ key: "etag",
1733
+ dataType: "string"
1734
+ },
1735
+ {
1736
+ value: response.headers.get("opc-request-id"),
1737
+ key: "opcRequestId",
1738
+ dataType: "string"
1739
+ }
1740
+ ]
1741
+ });
1742
+ return sdkResponse;
1743
+ }
1744
+ catch (err) {
1745
+ throw err;
1746
+ }
1747
+ });
1748
+ }
1545
1749
  /**
1546
1750
  * Gets the details of a work request.
1547
1751
  *
@@ -1964,6 +2168,77 @@ class GenerativeAiAgentClient {
1964
2168
  }
1965
2169
  });
1966
2170
  }
2171
+ /**
2172
+ * Gets a list of tools.
2173
+ *
2174
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2175
+ * @param ListToolsRequest
2176
+ * @return ListToolsResponse
2177
+ * @throws OciError when an error occurs
2178
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagent/ListTools.ts.html |here} to see how to use ListTools API.
2179
+ */
2180
+ listTools(listToolsRequest) {
2181
+ return __awaiter(this, void 0, void 0, function* () {
2182
+ if (this.logger)
2183
+ this.logger.debug("Calling operation GenerativeAiAgentClient#listTools.");
2184
+ const operationName = "listTools";
2185
+ const apiReferenceLink = "";
2186
+ const pathParams = {};
2187
+ const queryParams = {
2188
+ "compartmentId": listToolsRequest.compartmentId,
2189
+ "lifecycleState": listToolsRequest.lifecycleState,
2190
+ "displayName": listToolsRequest.displayName,
2191
+ "agentId": listToolsRequest.agentId,
2192
+ "limit": listToolsRequest.limit,
2193
+ "page": listToolsRequest.page,
2194
+ "sortOrder": listToolsRequest.sortOrder,
2195
+ "sortBy": listToolsRequest.sortBy
2196
+ };
2197
+ let headerParams = {
2198
+ "Content-Type": common.Constants.APPLICATION_JSON,
2199
+ "opc-request-id": listToolsRequest.opcRequestId
2200
+ };
2201
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2202
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listToolsRequest.retryConfiguration, specRetryConfiguration);
2203
+ if (this.logger)
2204
+ retrier.logger = this.logger;
2205
+ const request = yield oci_common_1.composeRequest({
2206
+ baseEndpoint: this._endpoint,
2207
+ defaultHeaders: this._defaultHeaders,
2208
+ path: "/tools",
2209
+ method: "GET",
2210
+ pathParams: pathParams,
2211
+ headerParams: headerParams,
2212
+ queryParams: queryParams
2213
+ });
2214
+ try {
2215
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2216
+ const sdkResponse = oci_common_1.composeResponse({
2217
+ responseObject: {},
2218
+ body: yield response.json(),
2219
+ bodyKey: "toolCollection",
2220
+ bodyModel: model.ToolCollection,
2221
+ type: "model.ToolCollection",
2222
+ responseHeaders: [
2223
+ {
2224
+ value: response.headers.get("opc-request-id"),
2225
+ key: "opcRequestId",
2226
+ dataType: "string"
2227
+ },
2228
+ {
2229
+ value: response.headers.get("opc-next-page"),
2230
+ key: "opcNextPage",
2231
+ dataType: "string"
2232
+ }
2233
+ ]
2234
+ });
2235
+ return sdkResponse;
2236
+ }
2237
+ catch (err) {
2238
+ throw err;
2239
+ }
2240
+ });
2241
+ }
1967
2242
  /**
1968
2243
  * Lists the errors for a work request.
1969
2244
  *
@@ -2421,6 +2696,68 @@ class GenerativeAiAgentClient {
2421
2696
  }
2422
2697
  });
2423
2698
  }
2699
+ /**
2700
+ * Updates a tool.
2701
+ *
2702
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2703
+ * @param UpdateToolRequest
2704
+ * @return UpdateToolResponse
2705
+ * @throws OciError when an error occurs
2706
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagent/UpdateTool.ts.html |here} to see how to use UpdateTool API.
2707
+ */
2708
+ updateTool(updateToolRequest) {
2709
+ return __awaiter(this, void 0, void 0, function* () {
2710
+ if (this.logger)
2711
+ this.logger.debug("Calling operation GenerativeAiAgentClient#updateTool.");
2712
+ const operationName = "updateTool";
2713
+ const apiReferenceLink = "";
2714
+ const pathParams = {
2715
+ "{toolId}": updateToolRequest.toolId
2716
+ };
2717
+ const queryParams = {};
2718
+ let headerParams = {
2719
+ "Content-Type": common.Constants.APPLICATION_JSON,
2720
+ "if-match": updateToolRequest.ifMatch,
2721
+ "opc-request-id": updateToolRequest.opcRequestId
2722
+ };
2723
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2724
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateToolRequest.retryConfiguration, specRetryConfiguration);
2725
+ if (this.logger)
2726
+ retrier.logger = this.logger;
2727
+ const request = yield oci_common_1.composeRequest({
2728
+ baseEndpoint: this._endpoint,
2729
+ defaultHeaders: this._defaultHeaders,
2730
+ path: "/tools/{toolId}",
2731
+ method: "PUT",
2732
+ bodyContent: common.ObjectSerializer.serialize(updateToolRequest.updateToolDetails, "UpdateToolDetails", model.UpdateToolDetails.getJsonObj),
2733
+ pathParams: pathParams,
2734
+ headerParams: headerParams,
2735
+ queryParams: queryParams
2736
+ });
2737
+ try {
2738
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2739
+ const sdkResponse = oci_common_1.composeResponse({
2740
+ responseObject: {},
2741
+ responseHeaders: [
2742
+ {
2743
+ value: response.headers.get("opc-work-request-id"),
2744
+ key: "opcWorkRequestId",
2745
+ dataType: "string"
2746
+ },
2747
+ {
2748
+ value: response.headers.get("opc-request-id"),
2749
+ key: "opcRequestId",
2750
+ dataType: "string"
2751
+ }
2752
+ ]
2753
+ });
2754
+ return sdkResponse;
2755
+ }
2756
+ catch (err) {
2757
+ throw err;
2758
+ }
2759
+ });
2760
+ }
2424
2761
  }
2425
2762
  exports.GenerativeAiAgentClient = GenerativeAiAgentClient;
2426
2763
  GenerativeAiAgentClient.serviceEndpointTemplate = "https://agent.generativeai.{region}.oci.{secondLevelDomain}";