oci-generativeaiagentruntime 2.95.0
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.
- package/LICENSE.txt +89 -0
- package/NOTICE.txt +1 -0
- package/README.md +22 -0
- package/THIRD_PARTY_LICENSES.txt +576 -0
- package/index.d.ts +29 -0
- package/index.js +52 -0
- package/index.js.map +1 -0
- package/lib/client.d.ts +139 -0
- package/lib/client.js +514 -0
- package/lib/client.js.map +1 -0
- package/lib/model/chat-details.d.ts +43 -0
- package/lib/model/chat-details.js +38 -0
- package/lib/model/chat-details.js.map +1 -0
- package/lib/model/chat-result.d.ts +37 -0
- package/lib/model/chat-result.js +72 -0
- package/lib/model/chat-result.js.map +1 -0
- package/lib/model/citation.d.ts +37 -0
- package/lib/model/citation.js +66 -0
- package/lib/model/citation.js.map +1 -0
- package/lib/model/create-session-details.d.ts +39 -0
- package/lib/model/create-session-details.js +38 -0
- package/lib/model/create-session-details.js.map +1 -0
- package/lib/model/error-trace.d.ts +38 -0
- package/lib/model/error-trace.js +59 -0
- package/lib/model/error-trace.js.map +1 -0
- package/lib/model/generation-trace.d.ts +38 -0
- package/lib/model/generation-trace.js +59 -0
- package/lib/model/generation-trace.js.map +1 -0
- package/lib/model/index.d.ts +53 -0
- package/lib/model/index.js +76 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/message-content.d.ts +40 -0
- package/lib/model/message-content.js +70 -0
- package/lib/model/message-content.js.map +1 -0
- package/lib/model/message.d.ts +50 -0
- package/lib/model/message.js +74 -0
- package/lib/model/message.js.map +1 -0
- package/lib/model/oci-database-source-location.d.ts +46 -0
- package/lib/model/oci-database-source-location.js +63 -0
- package/lib/model/oci-database-source-location.js.map +1 -0
- package/lib/model/oci-object-storage-source-location.d.ts +38 -0
- package/lib/model/oci-object-storage-source-location.js +63 -0
- package/lib/model/oci-object-storage-source-location.js.map +1 -0
- package/lib/model/oci-open-search-source-location.d.ts +46 -0
- package/lib/model/oci-open-search-source-location.js +63 -0
- package/lib/model/oci-open-search-source-location.js.map +1 -0
- package/lib/model/retrieval-trace.d.ts +42 -0
- package/lib/model/retrieval-trace.js +71 -0
- package/lib/model/retrieval-trace.js.map +1 -0
- package/lib/model/session.d.ts +55 -0
- package/lib/model/session.js +38 -0
- package/lib/model/session.js.map +1 -0
- package/lib/model/source-location.d.ts +32 -0
- package/lib/model/source-location.js +85 -0
- package/lib/model/source-location.js.map +1 -0
- package/lib/model/trace.d.ts +36 -0
- package/lib/model/trace.js +85 -0
- package/lib/model/trace.js.map +1 -0
- package/lib/model/update-session-details.d.ts +39 -0
- package/lib/model/update-session-details.js +38 -0
- package/lib/model/update-session-details.js.map +1 -0
- package/lib/request/chat-request.d.ts +49 -0
- package/lib/request/chat-request.js +15 -0
- package/lib/request/chat-request.js.map +1 -0
- package/lib/request/create-session-request.d.ts +40 -0
- package/lib/request/create-session-request.js +15 -0
- package/lib/request/create-session-request.js.map +1 -0
- package/lib/request/delete-session-request.d.ts +39 -0
- package/lib/request/delete-session-request.js +15 -0
- package/lib/request/delete-session-request.js.map +1 -0
- package/lib/request/get-session-request.d.ts +30 -0
- package/lib/request/get-session-request.js +15 -0
- package/lib/request/get-session-request.js.map +1 -0
- package/lib/request/index.d.ts +31 -0
- package/lib/request/index.js +24 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/update-session-request.d.ts +44 -0
- package/lib/request/update-session-request.js +15 -0
- package/lib/request/update-session-request.js.map +1 -0
- package/lib/response/chat-response.d.ts +25 -0
- package/lib/response/chat-response.js +15 -0
- package/lib/response/chat-response.js.map +1 -0
- package/lib/response/create-session-response.d.ts +30 -0
- package/lib/response/create-session-response.js +15 -0
- package/lib/response/create-session-response.js.map +1 -0
- package/lib/response/delete-session-response.d.ts +20 -0
- package/lib/response/delete-session-response.js +15 -0
- package/lib/response/delete-session-response.js.map +1 -0
- package/lib/response/get-session-response.d.ts +30 -0
- package/lib/response/get-session-response.js +15 -0
- package/lib/response/get-session-response.js.map +1 -0
- package/lib/response/index.d.ts +31 -0
- package/lib/response/index.js +24 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/update-session-response.d.ts +30 -0
- package/lib/response/update-session-response.js +15 -0
- package/lib/response/update-session-response.js.map +1 -0
- package/package.json +29 -0
package/lib/client.d.ts
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generative AI Agents Client API
|
|
3
|
+
* OCI Generative AI Agents is a fully managed service that combines the power of large language models (LLMs) with an intelligent retrieval system to create contextually relevant answers by searching your knowledge base, making your AI applications smart and efficient.
|
|
4
|
+
|
|
5
|
+
OCI Generative AI Agents supports several ways to onboard your data and then allows you and your customers to interact with your data using a chat interface or API.
|
|
6
|
+
|
|
7
|
+
Use the Generative AI Agents Client API to create and manage client chat sessions. A session represents an interactive conversation initiated by a user through an API to engage with an agent. It involves a series of exchanges where the user sends queries or prompts, and the agent responds with relevant information, actions, or assistance based on the user's input. The session persists for the duration of the interaction, maintaining context and continuity to provide coherent and meaningful responses throughout the conversation.
|
|
8
|
+
|
|
9
|
+
For creating and managing agents, knowledge bases, data sources, endpoints, and data ingestion jobs see the [Generative AI Agents Management API](#/EN/generative-ai-agents/latest/).
|
|
10
|
+
|
|
11
|
+
To learn more about the service, see the [Generative AI Agents documentation](/iaas/Content/generative-ai-agents/home.htm).
|
|
12
|
+
|
|
13
|
+
* OpenAPI spec version: 20240531
|
|
14
|
+
*
|
|
15
|
+
*
|
|
16
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
17
|
+
* Do not edit the class manually.
|
|
18
|
+
*
|
|
19
|
+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
20
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
21
|
+
*/
|
|
22
|
+
import common = require("oci-common");
|
|
23
|
+
import * as requests from "./request";
|
|
24
|
+
import * as responses from "./response";
|
|
25
|
+
declare const Breaker: any;
|
|
26
|
+
export declare enum GenerativeAiAgentRuntimeApiKeys {
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
30
|
+
*/
|
|
31
|
+
export declare class GenerativeAiAgentRuntimeClient {
|
|
32
|
+
protected static serviceEndpointTemplate: string;
|
|
33
|
+
protected static endpointServiceName: string;
|
|
34
|
+
protected "_realmSpecificEndpointTemplateEnabled": boolean | undefined;
|
|
35
|
+
protected "_endpoint": string;
|
|
36
|
+
protected "_defaultHeaders": any;
|
|
37
|
+
protected "_clientConfiguration": common.ClientConfiguration;
|
|
38
|
+
protected _circuitBreaker: typeof Breaker | null;
|
|
39
|
+
protected _httpOptions: any;
|
|
40
|
+
protected _bodyDuplexMode: any;
|
|
41
|
+
targetService: string;
|
|
42
|
+
protected _regionId: string;
|
|
43
|
+
protected "_region": common.Region;
|
|
44
|
+
protected _lastSetRegionOrRegionId: string;
|
|
45
|
+
protected _httpClient: common.HttpClient;
|
|
46
|
+
constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration);
|
|
47
|
+
/**
|
|
48
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
49
|
+
*/
|
|
50
|
+
get endpoint(): string;
|
|
51
|
+
/**
|
|
52
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
53
|
+
* @param endpoint The endpoint of the service.
|
|
54
|
+
*/
|
|
55
|
+
set endpoint(endpoint: string);
|
|
56
|
+
get logger(): import("oci-common/lib/log").Logger;
|
|
57
|
+
/**
|
|
58
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
59
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
60
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
61
|
+
*/
|
|
62
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean);
|
|
63
|
+
/**
|
|
64
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
65
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
66
|
+
* @param region The region of the service.
|
|
67
|
+
*/
|
|
68
|
+
set region(region: common.Region);
|
|
69
|
+
/**
|
|
70
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
71
|
+
*
|
|
72
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
73
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
74
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
75
|
+
* @param regionId The public region ID.
|
|
76
|
+
*/
|
|
77
|
+
set regionId(regionId: string);
|
|
78
|
+
/**
|
|
79
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
80
|
+
*/
|
|
81
|
+
shutdownCircuitBreaker(): void;
|
|
82
|
+
/**
|
|
83
|
+
* Close the client once it is no longer needed
|
|
84
|
+
*/
|
|
85
|
+
close(): void;
|
|
86
|
+
/**
|
|
87
|
+
* Chat on endpoint with provided messages.
|
|
88
|
+
*
|
|
89
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
90
|
+
* @param ChatRequest
|
|
91
|
+
* @return ChatResponse
|
|
92
|
+
* @throws OciError when an error occurs
|
|
93
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagentruntime/Chat.ts.html |here} to see how to use Chat API.
|
|
94
|
+
*/
|
|
95
|
+
chat(chatRequest: requests.ChatRequest): Promise<responses.ChatResponse | ReadableStream<Uint8Array> | null>;
|
|
96
|
+
/**
|
|
97
|
+
* A session represents an interactive conversation initiated by a user through an API to engage with an agent. It involves a series of exchanges where the user sends queries or prompts, and the agent responds with relevant information, actions, or assistance based on the user's input. The session persists for the duration of the interaction, maintaining context and continuity to provide coherent and meaningful responses throughout the conversation.Creates an agent session.
|
|
98
|
+
* <p>
|
|
99
|
+
Use this API to create an agent session.
|
|
100
|
+
*
|
|
101
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
102
|
+
* @param CreateSessionRequest
|
|
103
|
+
* @return CreateSessionResponse
|
|
104
|
+
* @throws OciError when an error occurs
|
|
105
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagentruntime/CreateSession.ts.html |here} to see how to use CreateSession API.
|
|
106
|
+
*/
|
|
107
|
+
createSession(createSessionRequest: requests.CreateSessionRequest): Promise<responses.CreateSessionResponse>;
|
|
108
|
+
/**
|
|
109
|
+
* Delete a session and all its associated information.
|
|
110
|
+
*
|
|
111
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
112
|
+
* @param DeleteSessionRequest
|
|
113
|
+
* @return DeleteSessionResponse
|
|
114
|
+
* @throws OciError when an error occurs
|
|
115
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagentruntime/DeleteSession.ts.html |here} to see how to use DeleteSession API.
|
|
116
|
+
*/
|
|
117
|
+
deleteSession(deleteSessionRequest: requests.DeleteSessionRequest): Promise<responses.DeleteSessionResponse>;
|
|
118
|
+
/**
|
|
119
|
+
* Return the session resource identified by the session ID.
|
|
120
|
+
*
|
|
121
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
122
|
+
* @param GetSessionRequest
|
|
123
|
+
* @return GetSessionResponse
|
|
124
|
+
* @throws OciError when an error occurs
|
|
125
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagentruntime/GetSession.ts.html |here} to see how to use GetSession API.
|
|
126
|
+
*/
|
|
127
|
+
getSession(getSessionRequest: requests.GetSessionRequest): Promise<responses.GetSessionResponse>;
|
|
128
|
+
/**
|
|
129
|
+
* Update session metadata, including but not limited to description, tags.
|
|
130
|
+
*
|
|
131
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
132
|
+
* @param UpdateSessionRequest
|
|
133
|
+
* @return UpdateSessionResponse
|
|
134
|
+
* @throws OciError when an error occurs
|
|
135
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagentruntime/UpdateSession.ts.html |here} to see how to use UpdateSession API.
|
|
136
|
+
*/
|
|
137
|
+
updateSession(updateSessionRequest: requests.UpdateSessionRequest): Promise<responses.UpdateSessionResponse>;
|
|
138
|
+
}
|
|
139
|
+
export {};
|
package/lib/client.js
ADDED
|
@@ -0,0 +1,514 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generative AI Agents Client API
|
|
4
|
+
* OCI Generative AI Agents is a fully managed service that combines the power of large language models (LLMs) with an intelligent retrieval system to create contextually relevant answers by searching your knowledge base, making your AI applications smart and efficient.
|
|
5
|
+
|
|
6
|
+
OCI Generative AI Agents supports several ways to onboard your data and then allows you and your customers to interact with your data using a chat interface or API.
|
|
7
|
+
|
|
8
|
+
Use the Generative AI Agents Client API to create and manage client chat sessions. A session represents an interactive conversation initiated by a user through an API to engage with an agent. It involves a series of exchanges where the user sends queries or prompts, and the agent responds with relevant information, actions, or assistance based on the user's input. The session persists for the duration of the interaction, maintaining context and continuity to provide coherent and meaningful responses throughout the conversation.
|
|
9
|
+
|
|
10
|
+
For creating and managing agents, knowledge bases, data sources, endpoints, and data ingestion jobs see the [Generative AI Agents Management API](#/EN/generative-ai-agents/latest/).
|
|
11
|
+
|
|
12
|
+
To learn more about the service, see the [Generative AI Agents documentation](/iaas/Content/generative-ai-agents/home.htm).
|
|
13
|
+
|
|
14
|
+
* OpenAPI spec version: 20240531
|
|
15
|
+
*
|
|
16
|
+
*
|
|
17
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*
|
|
20
|
+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
21
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
22
|
+
*/
|
|
23
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
24
|
+
if (k2 === undefined) k2 = k;
|
|
25
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
26
|
+
}) : (function(o, m, k, k2) {
|
|
27
|
+
if (k2 === undefined) k2 = k;
|
|
28
|
+
o[k2] = m[k];
|
|
29
|
+
}));
|
|
30
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
31
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
32
|
+
}) : function(o, v) {
|
|
33
|
+
o["default"] = v;
|
|
34
|
+
});
|
|
35
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
36
|
+
if (mod && mod.__esModule) return mod;
|
|
37
|
+
var result = {};
|
|
38
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
39
|
+
__setModuleDefault(result, mod);
|
|
40
|
+
return result;
|
|
41
|
+
};
|
|
42
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
43
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
44
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
45
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
46
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
47
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
48
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52
|
+
exports.GenerativeAiAgentRuntimeClient = exports.GenerativeAiAgentRuntimeApiKeys = void 0;
|
|
53
|
+
const common = require("oci-common");
|
|
54
|
+
const model = __importStar(require("./model"));
|
|
55
|
+
const oci_common_1 = require("oci-common");
|
|
56
|
+
const Breaker = require("opossum");
|
|
57
|
+
// ===============================================
|
|
58
|
+
// This file is autogenerated - Please do not edit
|
|
59
|
+
// ===============================================
|
|
60
|
+
var GenerativeAiAgentRuntimeApiKeys;
|
|
61
|
+
(function (GenerativeAiAgentRuntimeApiKeys) {
|
|
62
|
+
})(GenerativeAiAgentRuntimeApiKeys = exports.GenerativeAiAgentRuntimeApiKeys || (exports.GenerativeAiAgentRuntimeApiKeys = {}));
|
|
63
|
+
/**
|
|
64
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
65
|
+
*/
|
|
66
|
+
class GenerativeAiAgentRuntimeClient {
|
|
67
|
+
constructor(params, clientConfiguration) {
|
|
68
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
69
|
+
this["_endpoint"] = "";
|
|
70
|
+
this["_defaultHeaders"] = {};
|
|
71
|
+
this._circuitBreaker = null;
|
|
72
|
+
this._httpOptions = undefined;
|
|
73
|
+
this._bodyDuplexMode = undefined;
|
|
74
|
+
this.targetService = "GenerativeAiAgentRuntime";
|
|
75
|
+
this._regionId = "";
|
|
76
|
+
this._lastSetRegionOrRegionId = "";
|
|
77
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
78
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
79
|
+
: null;
|
|
80
|
+
if (clientConfiguration) {
|
|
81
|
+
this._clientConfiguration = clientConfiguration;
|
|
82
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
83
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
84
|
+
: null;
|
|
85
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
86
|
+
? clientConfiguration.httpOptions
|
|
87
|
+
: undefined;
|
|
88
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
89
|
+
? clientConfiguration.bodyDuplexMode
|
|
90
|
+
: undefined;
|
|
91
|
+
}
|
|
92
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("generativeaiagentruntime")) {
|
|
93
|
+
let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
|
|
94
|
+
throw errmsg.concat("generativeaiagentruntime");
|
|
95
|
+
}
|
|
96
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
97
|
+
const specCircuitBreakerEnabled = true;
|
|
98
|
+
if (!this._circuitBreaker &&
|
|
99
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
100
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
101
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
102
|
+
}
|
|
103
|
+
this._httpClient =
|
|
104
|
+
params.httpClient ||
|
|
105
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
106
|
+
if (params.authenticationDetailsProvider &&
|
|
107
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
108
|
+
const provider = params.authenticationDetailsProvider;
|
|
109
|
+
if (provider.getRegion()) {
|
|
110
|
+
this.region = provider.getRegion();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
116
|
+
*/
|
|
117
|
+
get endpoint() {
|
|
118
|
+
return this._endpoint;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
122
|
+
* @param endpoint The endpoint of the service.
|
|
123
|
+
*/
|
|
124
|
+
set endpoint(endpoint) {
|
|
125
|
+
this._endpoint = endpoint;
|
|
126
|
+
this._endpoint = this._endpoint + "/20240531";
|
|
127
|
+
if (this.logger)
|
|
128
|
+
this.logger.info(`GenerativeAiAgentRuntimeClient endpoint set to ${this._endpoint}`);
|
|
129
|
+
}
|
|
130
|
+
get logger() {
|
|
131
|
+
return common.LOG.logger;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
135
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
136
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
137
|
+
*/
|
|
138
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
139
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
140
|
+
if (this.logger)
|
|
141
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
142
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
143
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(GenerativeAiAgentRuntimeClient.serviceEndpointTemplate, this._region, GenerativeAiAgentRuntimeClient.endpointServiceName);
|
|
144
|
+
}
|
|
145
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
146
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(GenerativeAiAgentRuntimeClient.serviceEndpointTemplate, this._regionId, GenerativeAiAgentRuntimeClient.endpointServiceName);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
151
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
152
|
+
* @param region The region of the service.
|
|
153
|
+
*/
|
|
154
|
+
set region(region) {
|
|
155
|
+
this._region = region;
|
|
156
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(GenerativeAiAgentRuntimeClient.serviceEndpointTemplate, region, GenerativeAiAgentRuntimeClient.endpointServiceName);
|
|
157
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
161
|
+
*
|
|
162
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
163
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
164
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
165
|
+
* @param regionId The public region ID.
|
|
166
|
+
*/
|
|
167
|
+
set regionId(regionId) {
|
|
168
|
+
this._regionId = regionId;
|
|
169
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(GenerativeAiAgentRuntimeClient.serviceEndpointTemplate, regionId, GenerativeAiAgentRuntimeClient.endpointServiceName);
|
|
170
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
174
|
+
*/
|
|
175
|
+
shutdownCircuitBreaker() {
|
|
176
|
+
if (this._circuitBreaker) {
|
|
177
|
+
this._circuitBreaker.shutdown();
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Close the client once it is no longer needed
|
|
182
|
+
*/
|
|
183
|
+
close() {
|
|
184
|
+
this.shutdownCircuitBreaker();
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Chat on endpoint with provided messages.
|
|
188
|
+
*
|
|
189
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
190
|
+
* @param ChatRequest
|
|
191
|
+
* @return ChatResponse
|
|
192
|
+
* @throws OciError when an error occurs
|
|
193
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagentruntime/Chat.ts.html |here} to see how to use Chat API.
|
|
194
|
+
*/
|
|
195
|
+
chat(chatRequest) {
|
|
196
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
197
|
+
if (this.logger)
|
|
198
|
+
this.logger.debug("Calling operation GenerativeAiAgentRuntimeClient#chat.");
|
|
199
|
+
const operationName = "chat";
|
|
200
|
+
const apiReferenceLink = "";
|
|
201
|
+
const pathParams = {
|
|
202
|
+
"{agentEndpointId}": chatRequest.agentEndpointId
|
|
203
|
+
};
|
|
204
|
+
const queryParams = {};
|
|
205
|
+
let headerParams = {
|
|
206
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
207
|
+
"opc-request-id": chatRequest.opcRequestId,
|
|
208
|
+
"if-match": chatRequest.ifMatch,
|
|
209
|
+
"opc-retry-token": chatRequest.opcRetryToken
|
|
210
|
+
};
|
|
211
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
212
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, chatRequest.retryConfiguration, specRetryConfiguration);
|
|
213
|
+
if (this.logger)
|
|
214
|
+
retrier.logger = this.logger;
|
|
215
|
+
const request = yield oci_common_1.composeRequest({
|
|
216
|
+
baseEndpoint: this._endpoint,
|
|
217
|
+
defaultHeaders: this._defaultHeaders,
|
|
218
|
+
path: "/agentEndpoints/{agentEndpointId}/actions/chat",
|
|
219
|
+
method: "POST",
|
|
220
|
+
bodyContent: common.ObjectSerializer.serialize(chatRequest.chatDetails, "ChatDetails", model.ChatDetails.getJsonObj),
|
|
221
|
+
pathParams: pathParams,
|
|
222
|
+
headerParams: headerParams,
|
|
223
|
+
queryParams: queryParams
|
|
224
|
+
});
|
|
225
|
+
try {
|
|
226
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
227
|
+
if (response.headers &&
|
|
228
|
+
response.headers.get(common.Constants.CONTENT_TYPE_HEADER) ===
|
|
229
|
+
common.Constants.SERVER_SIDE_EVENT_TEXT_STREAM) {
|
|
230
|
+
return response.body;
|
|
231
|
+
}
|
|
232
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
233
|
+
responseObject: {},
|
|
234
|
+
body: yield response.json(),
|
|
235
|
+
bodyKey: "chatResult",
|
|
236
|
+
bodyModel: model.ChatResult,
|
|
237
|
+
type: "model.ChatResult",
|
|
238
|
+
responseHeaders: [
|
|
239
|
+
{
|
|
240
|
+
value: response.headers.get("opc-request-id"),
|
|
241
|
+
key: "opcRequestId",
|
|
242
|
+
dataType: "string"
|
|
243
|
+
}
|
|
244
|
+
]
|
|
245
|
+
});
|
|
246
|
+
return sdkResponse;
|
|
247
|
+
}
|
|
248
|
+
catch (err) {
|
|
249
|
+
throw err;
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* A session represents an interactive conversation initiated by a user through an API to engage with an agent. It involves a series of exchanges where the user sends queries or prompts, and the agent responds with relevant information, actions, or assistance based on the user's input. The session persists for the duration of the interaction, maintaining context and continuity to provide coherent and meaningful responses throughout the conversation.Creates an agent session.
|
|
255
|
+
* <p>
|
|
256
|
+
Use this API to create an agent session.
|
|
257
|
+
*
|
|
258
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
259
|
+
* @param CreateSessionRequest
|
|
260
|
+
* @return CreateSessionResponse
|
|
261
|
+
* @throws OciError when an error occurs
|
|
262
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagentruntime/CreateSession.ts.html |here} to see how to use CreateSession API.
|
|
263
|
+
*/
|
|
264
|
+
createSession(createSessionRequest) {
|
|
265
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
266
|
+
if (this.logger)
|
|
267
|
+
this.logger.debug("Calling operation GenerativeAiAgentRuntimeClient#createSession.");
|
|
268
|
+
const operationName = "createSession";
|
|
269
|
+
const apiReferenceLink = "";
|
|
270
|
+
const pathParams = {
|
|
271
|
+
"{agentEndpointId}": createSessionRequest.agentEndpointId
|
|
272
|
+
};
|
|
273
|
+
const queryParams = {};
|
|
274
|
+
let headerParams = {
|
|
275
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
276
|
+
"opc-retry-token": createSessionRequest.opcRetryToken,
|
|
277
|
+
"opc-request-id": createSessionRequest.opcRequestId
|
|
278
|
+
};
|
|
279
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
280
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createSessionRequest.retryConfiguration, specRetryConfiguration);
|
|
281
|
+
if (this.logger)
|
|
282
|
+
retrier.logger = this.logger;
|
|
283
|
+
const request = yield oci_common_1.composeRequest({
|
|
284
|
+
baseEndpoint: this._endpoint,
|
|
285
|
+
defaultHeaders: this._defaultHeaders,
|
|
286
|
+
path: "/agentEndpoints/{agentEndpointId}/sessions",
|
|
287
|
+
method: "POST",
|
|
288
|
+
bodyContent: common.ObjectSerializer.serialize(createSessionRequest.createSessionDetails, "CreateSessionDetails", model.CreateSessionDetails.getJsonObj),
|
|
289
|
+
pathParams: pathParams,
|
|
290
|
+
headerParams: headerParams,
|
|
291
|
+
queryParams: queryParams
|
|
292
|
+
});
|
|
293
|
+
try {
|
|
294
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
295
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
296
|
+
responseObject: {},
|
|
297
|
+
body: yield response.json(),
|
|
298
|
+
bodyKey: "session",
|
|
299
|
+
bodyModel: model.Session,
|
|
300
|
+
type: "model.Session",
|
|
301
|
+
responseHeaders: [
|
|
302
|
+
{
|
|
303
|
+
value: response.headers.get("etag"),
|
|
304
|
+
key: "etag",
|
|
305
|
+
dataType: "string"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
value: response.headers.get("opc-request-id"),
|
|
309
|
+
key: "opcRequestId",
|
|
310
|
+
dataType: "string"
|
|
311
|
+
}
|
|
312
|
+
]
|
|
313
|
+
});
|
|
314
|
+
return sdkResponse;
|
|
315
|
+
}
|
|
316
|
+
catch (err) {
|
|
317
|
+
throw err;
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Delete a session and all its associated information.
|
|
323
|
+
*
|
|
324
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
325
|
+
* @param DeleteSessionRequest
|
|
326
|
+
* @return DeleteSessionResponse
|
|
327
|
+
* @throws OciError when an error occurs
|
|
328
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagentruntime/DeleteSession.ts.html |here} to see how to use DeleteSession API.
|
|
329
|
+
*/
|
|
330
|
+
deleteSession(deleteSessionRequest) {
|
|
331
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
332
|
+
if (this.logger)
|
|
333
|
+
this.logger.debug("Calling operation GenerativeAiAgentRuntimeClient#deleteSession.");
|
|
334
|
+
const operationName = "deleteSession";
|
|
335
|
+
const apiReferenceLink = "";
|
|
336
|
+
const pathParams = {
|
|
337
|
+
"{agentEndpointId}": deleteSessionRequest.agentEndpointId,
|
|
338
|
+
"{sessionId}": deleteSessionRequest.sessionId
|
|
339
|
+
};
|
|
340
|
+
const queryParams = {};
|
|
341
|
+
let headerParams = {
|
|
342
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
343
|
+
"if-match": deleteSessionRequest.ifMatch,
|
|
344
|
+
"opc-request-id": deleteSessionRequest.opcRequestId
|
|
345
|
+
};
|
|
346
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
347
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteSessionRequest.retryConfiguration, specRetryConfiguration);
|
|
348
|
+
if (this.logger)
|
|
349
|
+
retrier.logger = this.logger;
|
|
350
|
+
const request = yield oci_common_1.composeRequest({
|
|
351
|
+
baseEndpoint: this._endpoint,
|
|
352
|
+
defaultHeaders: this._defaultHeaders,
|
|
353
|
+
path: "/agentEndpoints/{agentEndpointId}/sessions/{sessionId}",
|
|
354
|
+
method: "DELETE",
|
|
355
|
+
pathParams: pathParams,
|
|
356
|
+
headerParams: headerParams,
|
|
357
|
+
queryParams: queryParams
|
|
358
|
+
});
|
|
359
|
+
try {
|
|
360
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
361
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
362
|
+
responseObject: {},
|
|
363
|
+
responseHeaders: [
|
|
364
|
+
{
|
|
365
|
+
value: response.headers.get("opc-request-id"),
|
|
366
|
+
key: "opcRequestId",
|
|
367
|
+
dataType: "string"
|
|
368
|
+
}
|
|
369
|
+
]
|
|
370
|
+
});
|
|
371
|
+
return sdkResponse;
|
|
372
|
+
}
|
|
373
|
+
catch (err) {
|
|
374
|
+
throw err;
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Return the session resource identified by the session ID.
|
|
380
|
+
*
|
|
381
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
382
|
+
* @param GetSessionRequest
|
|
383
|
+
* @return GetSessionResponse
|
|
384
|
+
* @throws OciError when an error occurs
|
|
385
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagentruntime/GetSession.ts.html |here} to see how to use GetSession API.
|
|
386
|
+
*/
|
|
387
|
+
getSession(getSessionRequest) {
|
|
388
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
389
|
+
if (this.logger)
|
|
390
|
+
this.logger.debug("Calling operation GenerativeAiAgentRuntimeClient#getSession.");
|
|
391
|
+
const operationName = "getSession";
|
|
392
|
+
const apiReferenceLink = "";
|
|
393
|
+
const pathParams = {
|
|
394
|
+
"{agentEndpointId}": getSessionRequest.agentEndpointId,
|
|
395
|
+
"{sessionId}": getSessionRequest.sessionId
|
|
396
|
+
};
|
|
397
|
+
const queryParams = {};
|
|
398
|
+
let headerParams = {
|
|
399
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
400
|
+
"opc-request-id": getSessionRequest.opcRequestId
|
|
401
|
+
};
|
|
402
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
403
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getSessionRequest.retryConfiguration, specRetryConfiguration);
|
|
404
|
+
if (this.logger)
|
|
405
|
+
retrier.logger = this.logger;
|
|
406
|
+
const request = yield oci_common_1.composeRequest({
|
|
407
|
+
baseEndpoint: this._endpoint,
|
|
408
|
+
defaultHeaders: this._defaultHeaders,
|
|
409
|
+
path: "/agentEndpoints/{agentEndpointId}/sessions/{sessionId}",
|
|
410
|
+
method: "GET",
|
|
411
|
+
pathParams: pathParams,
|
|
412
|
+
headerParams: headerParams,
|
|
413
|
+
queryParams: queryParams
|
|
414
|
+
});
|
|
415
|
+
try {
|
|
416
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
417
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
418
|
+
responseObject: {},
|
|
419
|
+
body: yield response.json(),
|
|
420
|
+
bodyKey: "session",
|
|
421
|
+
bodyModel: model.Session,
|
|
422
|
+
type: "model.Session",
|
|
423
|
+
responseHeaders: [
|
|
424
|
+
{
|
|
425
|
+
value: response.headers.get("etag"),
|
|
426
|
+
key: "etag",
|
|
427
|
+
dataType: "string"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
value: response.headers.get("opc-request-id"),
|
|
431
|
+
key: "opcRequestId",
|
|
432
|
+
dataType: "string"
|
|
433
|
+
}
|
|
434
|
+
]
|
|
435
|
+
});
|
|
436
|
+
return sdkResponse;
|
|
437
|
+
}
|
|
438
|
+
catch (err) {
|
|
439
|
+
throw err;
|
|
440
|
+
}
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* Update session metadata, including but not limited to description, tags.
|
|
445
|
+
*
|
|
446
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
447
|
+
* @param UpdateSessionRequest
|
|
448
|
+
* @return UpdateSessionResponse
|
|
449
|
+
* @throws OciError when an error occurs
|
|
450
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiagentruntime/UpdateSession.ts.html |here} to see how to use UpdateSession API.
|
|
451
|
+
*/
|
|
452
|
+
updateSession(updateSessionRequest) {
|
|
453
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
454
|
+
if (this.logger)
|
|
455
|
+
this.logger.debug("Calling operation GenerativeAiAgentRuntimeClient#updateSession.");
|
|
456
|
+
const operationName = "updateSession";
|
|
457
|
+
const apiReferenceLink = "";
|
|
458
|
+
const pathParams = {
|
|
459
|
+
"{agentEndpointId}": updateSessionRequest.agentEndpointId,
|
|
460
|
+
"{sessionId}": updateSessionRequest.sessionId
|
|
461
|
+
};
|
|
462
|
+
const queryParams = {};
|
|
463
|
+
let headerParams = {
|
|
464
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
465
|
+
"if-match": updateSessionRequest.ifMatch,
|
|
466
|
+
"opc-request-id": updateSessionRequest.opcRequestId
|
|
467
|
+
};
|
|
468
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
469
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateSessionRequest.retryConfiguration, specRetryConfiguration);
|
|
470
|
+
if (this.logger)
|
|
471
|
+
retrier.logger = this.logger;
|
|
472
|
+
const request = yield oci_common_1.composeRequest({
|
|
473
|
+
baseEndpoint: this._endpoint,
|
|
474
|
+
defaultHeaders: this._defaultHeaders,
|
|
475
|
+
path: "/agentEndpoints/{agentEndpointId}/sessions/{sessionId}",
|
|
476
|
+
method: "PUT",
|
|
477
|
+
bodyContent: common.ObjectSerializer.serialize(updateSessionRequest.updateSessionDetails, "UpdateSessionDetails", model.UpdateSessionDetails.getJsonObj),
|
|
478
|
+
pathParams: pathParams,
|
|
479
|
+
headerParams: headerParams,
|
|
480
|
+
queryParams: queryParams
|
|
481
|
+
});
|
|
482
|
+
try {
|
|
483
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
484
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
485
|
+
responseObject: {},
|
|
486
|
+
body: yield response.json(),
|
|
487
|
+
bodyKey: "session",
|
|
488
|
+
bodyModel: model.Session,
|
|
489
|
+
type: "model.Session",
|
|
490
|
+
responseHeaders: [
|
|
491
|
+
{
|
|
492
|
+
value: response.headers.get("etag"),
|
|
493
|
+
key: "etag",
|
|
494
|
+
dataType: "string"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
value: response.headers.get("opc-request-id"),
|
|
498
|
+
key: "opcRequestId",
|
|
499
|
+
dataType: "string"
|
|
500
|
+
}
|
|
501
|
+
]
|
|
502
|
+
});
|
|
503
|
+
return sdkResponse;
|
|
504
|
+
}
|
|
505
|
+
catch (err) {
|
|
506
|
+
throw err;
|
|
507
|
+
}
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
exports.GenerativeAiAgentRuntimeClient = GenerativeAiAgentRuntimeClient;
|
|
512
|
+
GenerativeAiAgentRuntimeClient.serviceEndpointTemplate = "https://genai-agent-service.{region}.oci.{secondLevelDomain}";
|
|
513
|
+
GenerativeAiAgentRuntimeClient.endpointServiceName = "";
|
|
514
|
+
//# sourceMappingURL=client.js.map
|