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
|
@@ -0,0 +1,46 @@
|
|
|
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 * as model from "../model";
|
|
23
|
+
/**
|
|
24
|
+
* The location of the OCI Search with OpenSearch that the agent will use.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export interface OciOpenSearchSourceLocation extends model.SourceLocation {
|
|
28
|
+
/**
|
|
29
|
+
* The OCID of the OCI OpenSearch cluster.
|
|
30
|
+
*/
|
|
31
|
+
"id"?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The name of the index in OpenSearch that contains the source text.
|
|
34
|
+
*/
|
|
35
|
+
"indexName"?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The URL of the retrieved document, if available.
|
|
38
|
+
*/
|
|
39
|
+
"url"?: string;
|
|
40
|
+
"sourceLocationType": string;
|
|
41
|
+
}
|
|
42
|
+
export declare namespace OciOpenSearchSourceLocation {
|
|
43
|
+
function getJsonObj(obj: OciOpenSearchSourceLocation, isParentJsonObj?: boolean): object;
|
|
44
|
+
const sourceLocationType = "OCI_OPEN_SEARCH";
|
|
45
|
+
function getDeserializedJsonObj(obj: OciOpenSearchSourceLocation, isParentJsonObj?: boolean): object;
|
|
46
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
+
exports.OciOpenSearchSourceLocation = void 0;
|
|
44
|
+
const model = __importStar(require("../model"));
|
|
45
|
+
var OciOpenSearchSourceLocation;
|
|
46
|
+
(function (OciOpenSearchSourceLocation) {
|
|
47
|
+
function getJsonObj(obj, isParentJsonObj) {
|
|
48
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
49
|
+
? obj
|
|
50
|
+
: model.SourceLocation.getJsonObj(obj))), {});
|
|
51
|
+
return jsonObj;
|
|
52
|
+
}
|
|
53
|
+
OciOpenSearchSourceLocation.getJsonObj = getJsonObj;
|
|
54
|
+
OciOpenSearchSourceLocation.sourceLocationType = "OCI_OPEN_SEARCH";
|
|
55
|
+
function getDeserializedJsonObj(obj, isParentJsonObj) {
|
|
56
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
57
|
+
? obj
|
|
58
|
+
: model.SourceLocation.getDeserializedJsonObj(obj))), {});
|
|
59
|
+
return jsonObj;
|
|
60
|
+
}
|
|
61
|
+
OciOpenSearchSourceLocation.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
62
|
+
})(OciOpenSearchSourceLocation = exports.OciOpenSearchSourceLocation || (exports.OciOpenSearchSourceLocation = {}));
|
|
63
|
+
//# sourceMappingURL=oci-open-search-source-location.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oci-open-search-source-location.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/oci-open-search-source-location.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAwBlC,IAAiB,2BAA2B,CAyB3C;AAzBD,WAAiB,2BAA2B;IAC1C,SAAgB,UAAU,CAAC,GAAgC,EAAE,eAAyB;QACpF,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,CAAiC,CAAC,GACvE,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IATe,sCAAU,aASzB,CAAA;IACY,8CAAkB,GAAG,iBAAiB,CAAC;IACpD,SAAgB,sBAAsB,CACpC,GAAgC,EAChC,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,cAAc,CAAC,sBAAsB,CAAC,GAAG,CAAiC,CAAC,GACnF,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,kDAAsB,yBAYrC,CAAA;AACH,CAAC,EAzBgB,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAyB3C"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 * as model from "../model";
|
|
23
|
+
/**
|
|
24
|
+
* The trace that displays the retrieval information.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export interface RetrievalTrace extends model.Trace {
|
|
28
|
+
/**
|
|
29
|
+
* The agent's search string for getting the displayed information.
|
|
30
|
+
*/
|
|
31
|
+
"retrievalInput"?: string;
|
|
32
|
+
/**
|
|
33
|
+
* A list of citations retrieved from data sources.
|
|
34
|
+
*/
|
|
35
|
+
"citations"?: Array<model.Citation>;
|
|
36
|
+
"traceType": string;
|
|
37
|
+
}
|
|
38
|
+
export declare namespace RetrievalTrace {
|
|
39
|
+
function getJsonObj(obj: RetrievalTrace, isParentJsonObj?: boolean): object;
|
|
40
|
+
const traceType = "RETRIEVAL_TRACE";
|
|
41
|
+
function getDeserializedJsonObj(obj: RetrievalTrace, isParentJsonObj?: boolean): object;
|
|
42
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
+
exports.RetrievalTrace = void 0;
|
|
44
|
+
const model = __importStar(require("../model"));
|
|
45
|
+
var RetrievalTrace;
|
|
46
|
+
(function (RetrievalTrace) {
|
|
47
|
+
function getJsonObj(obj, isParentJsonObj) {
|
|
48
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj ? obj : model.Trace.getJsonObj(obj))), {
|
|
49
|
+
"citations": obj.citations
|
|
50
|
+
? obj.citations.map(item => {
|
|
51
|
+
return model.Citation.getJsonObj(item);
|
|
52
|
+
})
|
|
53
|
+
: undefined
|
|
54
|
+
});
|
|
55
|
+
return jsonObj;
|
|
56
|
+
}
|
|
57
|
+
RetrievalTrace.getJsonObj = getJsonObj;
|
|
58
|
+
RetrievalTrace.traceType = "RETRIEVAL_TRACE";
|
|
59
|
+
function getDeserializedJsonObj(obj, isParentJsonObj) {
|
|
60
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj ? obj : model.Trace.getDeserializedJsonObj(obj))), {
|
|
61
|
+
"citations": obj.citations
|
|
62
|
+
? obj.citations.map(item => {
|
|
63
|
+
return model.Citation.getDeserializedJsonObj(item);
|
|
64
|
+
})
|
|
65
|
+
: undefined
|
|
66
|
+
});
|
|
67
|
+
return jsonObj;
|
|
68
|
+
}
|
|
69
|
+
RetrievalTrace.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
70
|
+
})(RetrievalTrace = exports.RetrievalTrace || (exports.RetrievalTrace = {}));
|
|
71
|
+
//# sourceMappingURL=retrieval-trace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieval-trace.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/retrieval-trace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAoBlC,IAAiB,cAAc,CA8B9B;AA9BD,WAAiB,cAAc;IAC7B,SAAgB,UAAU,CAAC,GAAmB,EAAE,eAAyB;QACvE,MAAM,OAAO,mCACR,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAE,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAoB,CAAC,GACzE;YACD,WAAW,EAAE,GAAG,CAAC,SAAS;gBACxB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACvB,OAAO,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACzC,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,yBAAU,aAazB,CAAA;IACY,wBAAS,GAAG,iBAAiB,CAAC;IAC3C,SAAgB,sBAAsB,CAAC,GAAmB,EAAE,eAAyB;QACnF,MAAM,OAAO,mCACR,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAE,KAAK,CAAC,KAAK,CAAC,sBAAsB,CAAC,GAAG,CAAoB,CAAC,GACrF;YACD,WAAW,EAAE,GAAG,CAAC,SAAS;gBACxB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACvB,OAAO,KAAK,CAAC,QAAQ,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBACrD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,qCAAsB,yBAarC,CAAA;AACH,CAAC,EA9BgB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QA8B9B"}
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
/**
|
|
23
|
+
* 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.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export interface Session {
|
|
27
|
+
/**
|
|
28
|
+
* A unique ID for the session. This ID is immutable on creation.
|
|
29
|
+
*/
|
|
30
|
+
"id": string;
|
|
31
|
+
/**
|
|
32
|
+
* A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
|
|
33
|
+
*/
|
|
34
|
+
"displayName"?: string;
|
|
35
|
+
/**
|
|
36
|
+
* A description of the session.
|
|
37
|
+
*/
|
|
38
|
+
"description"?: string;
|
|
39
|
+
/**
|
|
40
|
+
* A greeting message that the you receive when you start of a session.
|
|
41
|
+
*/
|
|
42
|
+
"welcomeMessage"?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The date and time that the session started in the format of an RFC3339 datetime string.
|
|
45
|
+
*/
|
|
46
|
+
"timeCreated": Date;
|
|
47
|
+
/**
|
|
48
|
+
* The date and time that the session was last updated in the format of an RFC3339 datetime string.
|
|
49
|
+
*/
|
|
50
|
+
"timeUpdated"?: Date;
|
|
51
|
+
}
|
|
52
|
+
export declare namespace Session {
|
|
53
|
+
function getJsonObj(obj: Session): object;
|
|
54
|
+
function getDeserializedJsonObj(obj: Session): object;
|
|
55
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.Session = void 0;
|
|
25
|
+
var Session;
|
|
26
|
+
(function (Session) {
|
|
27
|
+
function getJsonObj(obj) {
|
|
28
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
29
|
+
return jsonObj;
|
|
30
|
+
}
|
|
31
|
+
Session.getJsonObj = getJsonObj;
|
|
32
|
+
function getDeserializedJsonObj(obj) {
|
|
33
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
34
|
+
return jsonObj;
|
|
35
|
+
}
|
|
36
|
+
Session.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
37
|
+
})(Session = exports.Session || (exports.Session = {}));
|
|
38
|
+
//# sourceMappingURL=session.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/session.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;AAoCH,IAAiB,OAAO,CAWvB;AAXD,WAAiB,OAAO;IACtB,SAAgB,UAAU,CAAC,GAAY;QACrC,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,kBAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAY;QACjD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,8BAAsB,yBAIrC,CAAA;AACH,CAAC,EAXgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAWvB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
/**
|
|
23
|
+
* The location of the data files that the agent will use.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export interface SourceLocation {
|
|
27
|
+
"sourceLocationType": string;
|
|
28
|
+
}
|
|
29
|
+
export declare namespace SourceLocation {
|
|
30
|
+
function getJsonObj(obj: SourceLocation): object;
|
|
31
|
+
function getDeserializedJsonObj(obj: SourceLocation): object;
|
|
32
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
+
exports.SourceLocation = void 0;
|
|
44
|
+
const model = __importStar(require("../model"));
|
|
45
|
+
const common = require("oci-common");
|
|
46
|
+
var SourceLocation;
|
|
47
|
+
(function (SourceLocation) {
|
|
48
|
+
function getJsonObj(obj) {
|
|
49
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
50
|
+
if (obj && "sourceLocationType" in obj && obj.sourceLocationType) {
|
|
51
|
+
switch (obj.sourceLocationType) {
|
|
52
|
+
case "OCI_OBJECT_STORAGE":
|
|
53
|
+
return model.OciObjectStorageSourceLocation.getJsonObj(jsonObj, true);
|
|
54
|
+
case "OCI_OPEN_SEARCH":
|
|
55
|
+
return model.OciOpenSearchSourceLocation.getJsonObj(jsonObj, true);
|
|
56
|
+
case "OCI_DATABASE":
|
|
57
|
+
return model.OciDatabaseSourceLocation.getJsonObj(jsonObj, true);
|
|
58
|
+
default:
|
|
59
|
+
if (common.LOG.logger)
|
|
60
|
+
common.LOG.logger.info(`Unknown value for: ${obj.sourceLocationType}`);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return jsonObj;
|
|
64
|
+
}
|
|
65
|
+
SourceLocation.getJsonObj = getJsonObj;
|
|
66
|
+
function getDeserializedJsonObj(obj) {
|
|
67
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
68
|
+
if (obj && "sourceLocationType" in obj && obj.sourceLocationType) {
|
|
69
|
+
switch (obj.sourceLocationType) {
|
|
70
|
+
case "OCI_OBJECT_STORAGE":
|
|
71
|
+
return model.OciObjectStorageSourceLocation.getDeserializedJsonObj(jsonObj, true);
|
|
72
|
+
case "OCI_OPEN_SEARCH":
|
|
73
|
+
return model.OciOpenSearchSourceLocation.getDeserializedJsonObj(jsonObj, true);
|
|
74
|
+
case "OCI_DATABASE":
|
|
75
|
+
return model.OciDatabaseSourceLocation.getDeserializedJsonObj(jsonObj, true);
|
|
76
|
+
default:
|
|
77
|
+
if (common.LOG.logger)
|
|
78
|
+
common.LOG.logger.info(`Unknown value for: ${obj.sourceLocationType}`);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return jsonObj;
|
|
82
|
+
}
|
|
83
|
+
SourceLocation.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
84
|
+
})(SourceLocation = exports.SourceLocation || (exports.SourceLocation = {}));
|
|
85
|
+
//# sourceMappingURL=source-location.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-location.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/source-location.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,qCAAsC;AAUtC,IAAiB,cAAc,CAuD9B;AAvDD,WAAiB,cAAc;IAC7B,SAAgB,UAAU,CAAC,GAAmB;QAC5C,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,oBAAoB,IAAI,GAAG,IAAI,GAAG,CAAC,kBAAkB,EAAE;YAChE,QAAQ,GAAG,CAAC,kBAAkB,EAAE;gBAC9B,KAAK,oBAAoB;oBACvB,OAAO,KAAK,CAAC,8BAA8B,CAAC,UAAU,CACL,OAAQ,EACvD,IAAI,CACL,CAAC;gBACJ,KAAK,iBAAiB;oBACpB,OAAO,KAAK,CAAC,2BAA2B,CAAC,UAAU,CACL,OAAQ,EACpD,IAAI,CACL,CAAC;gBACJ,KAAK,cAAc;oBACjB,OAAO,KAAK,CAAC,yBAAyB,CAAC,UAAU,CACL,OAAQ,EAClD,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBACnB,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,kBAAkB,EAAE,CAAC,CAAC;aAC5E;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IA1Be,yBAAU,aA0BzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAmB;QACxD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,oBAAoB,IAAI,GAAG,IAAI,GAAG,CAAC,kBAAkB,EAAE;YAChE,QAAQ,GAAG,CAAC,kBAAkB,EAAE;gBAC9B,KAAK,oBAAoB;oBACvB,OAAO,KAAK,CAAC,8BAA8B,CAAC,sBAAsB,CACjB,OAAQ,EACvD,IAAI,CACL,CAAC;gBACJ,KAAK,iBAAiB;oBACpB,OAAO,KAAK,CAAC,2BAA2B,CAAC,sBAAsB,CACjB,OAAQ,EACpD,IAAI,CACL,CAAC;gBACJ,KAAK,cAAc;oBACjB,OAAO,KAAK,CAAC,yBAAyB,CAAC,sBAAsB,CACjB,OAAQ,EAClD,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBACnB,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,kBAAkB,EAAE,CAAC,CAAC;aAC5E;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IA1Be,qCAAsB,yBA0BrC,CAAA;AACH,CAAC,EAvDgB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAuD9B"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
/**
|
|
23
|
+
* The trace that displays the internal progression, such as reasoning and actions during an execution.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export interface Trace {
|
|
27
|
+
/**
|
|
28
|
+
* The date and time that the trace was created in the format of an RFC3339 datetime string.
|
|
29
|
+
*/
|
|
30
|
+
"timeCreated"?: Date;
|
|
31
|
+
"traceType": string;
|
|
32
|
+
}
|
|
33
|
+
export declare namespace Trace {
|
|
34
|
+
function getJsonObj(obj: Trace): object;
|
|
35
|
+
function getDeserializedJsonObj(obj: Trace): object;
|
|
36
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
+
exports.Trace = void 0;
|
|
44
|
+
const model = __importStar(require("../model"));
|
|
45
|
+
const common = require("oci-common");
|
|
46
|
+
var Trace;
|
|
47
|
+
(function (Trace) {
|
|
48
|
+
function getJsonObj(obj) {
|
|
49
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
50
|
+
if (obj && "traceType" in obj && obj.traceType) {
|
|
51
|
+
switch (obj.traceType) {
|
|
52
|
+
case "ERROR_TRACE":
|
|
53
|
+
return model.ErrorTrace.getJsonObj(jsonObj, true);
|
|
54
|
+
case "RETRIEVAL_TRACE":
|
|
55
|
+
return model.RetrievalTrace.getJsonObj(jsonObj, true);
|
|
56
|
+
case "GENERATION_TRACE":
|
|
57
|
+
return model.GenerationTrace.getJsonObj(jsonObj, true);
|
|
58
|
+
default:
|
|
59
|
+
if (common.LOG.logger)
|
|
60
|
+
common.LOG.logger.info(`Unknown value for: ${obj.traceType}`);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return jsonObj;
|
|
64
|
+
}
|
|
65
|
+
Trace.getJsonObj = getJsonObj;
|
|
66
|
+
function getDeserializedJsonObj(obj) {
|
|
67
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
68
|
+
if (obj && "traceType" in obj && obj.traceType) {
|
|
69
|
+
switch (obj.traceType) {
|
|
70
|
+
case "ERROR_TRACE":
|
|
71
|
+
return model.ErrorTrace.getDeserializedJsonObj(jsonObj, true);
|
|
72
|
+
case "RETRIEVAL_TRACE":
|
|
73
|
+
return model.RetrievalTrace.getDeserializedJsonObj(jsonObj, true);
|
|
74
|
+
case "GENERATION_TRACE":
|
|
75
|
+
return model.GenerationTrace.getDeserializedJsonObj(jsonObj, true);
|
|
76
|
+
default:
|
|
77
|
+
if (common.LOG.logger)
|
|
78
|
+
common.LOG.logger.info(`Unknown value for: ${obj.traceType}`);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return jsonObj;
|
|
82
|
+
}
|
|
83
|
+
Trace.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
84
|
+
})(Trace = exports.Trace || (exports.Trace = {}));
|
|
85
|
+
//# sourceMappingURL=trace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trace.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/trace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,qCAAsC;AAetC,IAAiB,KAAK,CAyCrB;AAzCD,WAAiB,KAAK;IACpB,SAAgB,UAAU,CAAC,GAAU;QACnC,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,WAAW,IAAI,GAAG,IAAI,GAAG,CAAC,SAAS,EAAE;YAC9C,QAAQ,GAAG,CAAC,SAAS,EAAE;gBACrB,KAAK,aAAa;oBAChB,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAA4B,OAAQ,EAAE,IAAI,CAAC,CAAC;gBAChF,KAAK,iBAAiB;oBACpB,OAAO,KAAK,CAAC,cAAc,CAAC,UAAU,CAAgC,OAAQ,EAAE,IAAI,CAAC,CAAC;gBACxF,KAAK,kBAAkB;oBACrB,OAAO,KAAK,CAAC,eAAe,CAAC,UAAU,CAAiC,OAAQ,EAAE,IAAI,CAAC,CAAC;gBAC1F;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,SAAS,EAAE,CAAC,CAAC;aACxF;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAhBe,gBAAU,aAgBzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAU;QAC/C,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,WAAW,IAAI,GAAG,IAAI,GAAG,CAAC,SAAS,EAAE;YAC9C,QAAQ,GAAG,CAAC,SAAS,EAAE;gBACrB,KAAK,aAAa;oBAChB,OAAO,KAAK,CAAC,UAAU,CAAC,sBAAsB,CAA4B,OAAQ,EAAE,IAAI,CAAC,CAAC;gBAC5F,KAAK,iBAAiB;oBACpB,OAAO,KAAK,CAAC,cAAc,CAAC,sBAAsB,CACjB,OAAQ,EACvC,IAAI,CACL,CAAC;gBACJ,KAAK,kBAAkB;oBACrB,OAAO,KAAK,CAAC,eAAe,CAAC,sBAAsB,CACjB,OAAQ,EACxC,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,SAAS,EAAE,CAAC,CAAC;aACxF;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAtBe,4BAAsB,yBAsBrC,CAAA;AACH,CAAC,EAzCgB,KAAK,GAAL,aAAK,KAAL,aAAK,QAyCrB"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
/**
|
|
23
|
+
* Information about the updated session.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export interface UpdateSessionDetails {
|
|
27
|
+
/**
|
|
28
|
+
* The name of the session. A session names doesn't have to be unique and you can change the session name later.
|
|
29
|
+
*/
|
|
30
|
+
"displayName"?: string;
|
|
31
|
+
/**
|
|
32
|
+
* A description of the session.
|
|
33
|
+
*/
|
|
34
|
+
"description"?: string;
|
|
35
|
+
}
|
|
36
|
+
export declare namespace UpdateSessionDetails {
|
|
37
|
+
function getJsonObj(obj: UpdateSessionDetails): object;
|
|
38
|
+
function getDeserializedJsonObj(obj: UpdateSessionDetails): object;
|
|
39
|
+
}
|