oci-generativeaiagentruntime 2.112.2 → 2.113.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/lib/model/chat-details.d.ts +6 -1
- package/lib/model/chat-details.js +10 -0
- package/lib/model/chat-details.js.map +1 -1
- package/lib/model/chat-result.d.ts +7 -1
- package/lib/model/chat-result.js +10 -0
- package/lib/model/chat-result.js.map +1 -1
- package/lib/model/generic-tool-input.d.ts +38 -0
- package/lib/model/generic-tool-input.js +61 -0
- package/lib/model/generic-tool-input.js.map +1 -0
- package/lib/model/generic-tool-output.d.ts +38 -0
- package/lib/model/generic-tool-output.js +61 -0
- package/lib/model/generic-tool-output.js.map +1 -0
- package/lib/model/index.d.ts +14 -0
- package/lib/model/index.js +15 -1
- package/lib/model/index.js.map +1 -1
- package/lib/model/rag-tool-output.d.ts +46 -0
- package/lib/model/rag-tool-output.js +81 -0
- package/lib/model/rag-tool-output.js.map +1 -0
- package/lib/model/sql-result-files.d.ts +39 -0
- package/lib/model/sql-result-files.js +38 -0
- package/lib/model/sql-result-files.js.map +1 -0
- package/lib/model/sql-tool-output.d.ts +47 -0
- package/lib/model/sql-tool-output.js +67 -0
- package/lib/model/sql-tool-output.js.map +1 -0
- package/lib/model/tool-input.d.ts +36 -0
- package/lib/model/tool-input.js +77 -0
- package/lib/model/tool-input.js.map +1 -0
- package/lib/model/tool-invocation-trace.d.ts +2 -14
- package/lib/model/tool-invocation-trace.js.map +1 -1
- package/lib/model/tool-output.d.ts +40 -0
- package/lib/model/tool-output.js +85 -0
- package/lib/model/tool-output.js.map +1 -0
- package/package.json +3 -3
|
@@ -38,11 +38,16 @@ export interface ChatDetails {
|
|
|
38
38
|
*/
|
|
39
39
|
"sessionId"?: string;
|
|
40
40
|
/**
|
|
41
|
-
* A map where each key is a toolId and the value contains tool type and additional dynamic parameters.
|
|
41
|
+
* A map where each key is a toolId and the value contains tool type and additional dynamic parameters. This field is deprecated and will be removed after July 02 2026.
|
|
42
42
|
*/
|
|
43
43
|
"toolParameters"?: {
|
|
44
44
|
[key: string]: string;
|
|
45
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* Array of tool input objects, each specifying a tool's ID, type, and corresponding input parameters required for execution.
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
"toolInputs"?: Array<model.ToolInput>;
|
|
46
51
|
/**
|
|
47
52
|
* A list of actions that have been performed based on prior required actions.
|
|
48
53
|
*/
|
|
@@ -46,6 +46,11 @@ var ChatDetails;
|
|
|
46
46
|
(function (ChatDetails) {
|
|
47
47
|
function getJsonObj(obj) {
|
|
48
48
|
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
49
|
+
"toolInputs": obj.toolInputs
|
|
50
|
+
? obj.toolInputs.map(item => {
|
|
51
|
+
return model.ToolInput.getJsonObj(item);
|
|
52
|
+
})
|
|
53
|
+
: undefined,
|
|
49
54
|
"performedActions": obj.performedActions
|
|
50
55
|
? obj.performedActions.map(item => {
|
|
51
56
|
return model.PerformedAction.getJsonObj(item);
|
|
@@ -57,6 +62,11 @@ var ChatDetails;
|
|
|
57
62
|
ChatDetails.getJsonObj = getJsonObj;
|
|
58
63
|
function getDeserializedJsonObj(obj) {
|
|
59
64
|
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
65
|
+
"toolInputs": obj.toolInputs
|
|
66
|
+
? obj.toolInputs.map(item => {
|
|
67
|
+
return model.ToolInput.getDeserializedJsonObj(item);
|
|
68
|
+
})
|
|
69
|
+
: undefined,
|
|
60
70
|
"performedActions": obj.performedActions
|
|
61
71
|
? obj.performedActions.map(item => {
|
|
62
72
|
return model.PerformedAction.getDeserializedJsonObj(item);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-details.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/chat-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;
|
|
1
|
+
{"version":3,"file":"chat-details.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/chat-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAmClC,IAAiB,WAAW,CAuC3B;AAvCD,WAAiB,WAAW;IAC1B,SAAgB,UAAU,CAAC,GAAgB;QACzC,MAAM,OAAO,mCACR,GAAG,GACH;YACD,YAAY,EAAE,GAAG,CAAC,UAAU;gBAC1B,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACxB,OAAO,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBAC1C,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;YACb,kBAAkB,EAAE,GAAG,CAAC,gBAAgB;gBACtC,CAAC,CAAC,GAAG,CAAC,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBAC9B,OAAO,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBAChD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAlBe,sBAAU,aAkBzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAgB;QACrD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,YAAY,EAAE,GAAG,CAAC,UAAU;gBAC1B,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACxB,OAAO,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBACtD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;YACb,kBAAkB,EAAE,GAAG,CAAC,gBAAgB;gBACtC,CAAC,CAAC,GAAG,CAAC,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBAC9B,OAAO,KAAK,CAAC,eAAe,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAC5D,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAlBe,kCAAsB,yBAkBrC,CAAA;AACH,CAAC,EAvCgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAuC3B"}
|
|
@@ -31,11 +31,17 @@ export interface ChatResult {
|
|
|
31
31
|
*/
|
|
32
32
|
"traces"?: Array<model.Trace>;
|
|
33
33
|
/**
|
|
34
|
-
* A map where each key is a toolId and the value contains tool type and additional dynamic results.
|
|
34
|
+
* A map where each key is a toolId and the value contains tool type and additional dynamic results. This field is deprecated and will be removed after July 02 2026.
|
|
35
35
|
*/
|
|
36
36
|
"toolResults"?: {
|
|
37
37
|
[key: string]: string;
|
|
38
38
|
};
|
|
39
|
+
/**
|
|
40
|
+
* Array of tool outputs in execution order. Each item includes the tool OCID, output type,
|
|
41
|
+
* and corresponding content. The result structure is defined by the {@code toolOutputType} discriminator.
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
"toolOutputs"?: Array<model.ToolOutput>;
|
|
39
45
|
/**
|
|
40
46
|
* A list of actions the agent requires the user or agent client to perform.
|
|
41
47
|
*
|
package/lib/model/chat-result.js
CHANGED
|
@@ -52,6 +52,11 @@ var ChatResult;
|
|
|
52
52
|
return model.Trace.getJsonObj(item);
|
|
53
53
|
})
|
|
54
54
|
: undefined,
|
|
55
|
+
"toolOutputs": obj.toolOutputs
|
|
56
|
+
? obj.toolOutputs.map(item => {
|
|
57
|
+
return model.ToolOutput.getJsonObj(item);
|
|
58
|
+
})
|
|
59
|
+
: undefined,
|
|
55
60
|
"requiredActions": obj.requiredActions
|
|
56
61
|
? obj.requiredActions.map(item => {
|
|
57
62
|
return model.RequiredAction.getJsonObj(item);
|
|
@@ -69,6 +74,11 @@ var ChatResult;
|
|
|
69
74
|
return model.Trace.getDeserializedJsonObj(item);
|
|
70
75
|
})
|
|
71
76
|
: undefined,
|
|
77
|
+
"toolOutputs": obj.toolOutputs
|
|
78
|
+
? obj.toolOutputs.map(item => {
|
|
79
|
+
return model.ToolOutput.getDeserializedJsonObj(item);
|
|
80
|
+
})
|
|
81
|
+
: undefined,
|
|
72
82
|
"requiredActions": obj.requiredActions
|
|
73
83
|
? obj.requiredActions.map(item => {
|
|
74
84
|
return model.RequiredAction.getDeserializedJsonObj(item);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-result.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/chat-result.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;
|
|
1
|
+
{"version":3,"file":"chat-result.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/chat-result.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAkClC,IAAiB,UAAU,CAqD1B;AArDD,WAAiB,UAAU;IACzB,SAAgB,UAAU,CAAC,GAAe;QACxC,MAAM,OAAO,mCACR,GAAG,GACH;YACD,SAAS,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;YAC1E,QAAQ,EAAE,GAAG,CAAC,MAAM;gBAClB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACpB,OAAO,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACtC,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;YAEb,aAAa,EAAE,GAAG,CAAC,WAAW;gBAC5B,CAAC,CAAC,GAAG,CAAC,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C7B,OAAO,KAAK,CAAC,cAAc,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAC3D,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAzBe,iCAAsB,yBAyBrC,CAAA;AACH,CAAC,EArDgB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAqD1B"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 {@link #eNGenerative-ai-agentsLatest(ENGenerative-ai-agentsLatestRequest) eNGenerative-ai-agentsLatest}.
|
|
10
|
+
|
|
11
|
+
To learn more about the service, see the [Generative AI Agents documentation](https://docs.oracle.com/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, 2025, 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
|
+
* Represents a generic tool input schema that accepts flexible, freeform JSON parameters. This structure is intended for tools that do not require a fixed input schema.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export interface GenericToolInput extends model.ToolInput {
|
|
28
|
+
/**
|
|
29
|
+
* A freeform JSON object containing the input parameters to be passed to the tool during execution.
|
|
30
|
+
*/
|
|
31
|
+
"input": any;
|
|
32
|
+
"toolInputType": string;
|
|
33
|
+
}
|
|
34
|
+
export declare namespace GenericToolInput {
|
|
35
|
+
function getJsonObj(obj: GenericToolInput, isParentJsonObj?: boolean): object;
|
|
36
|
+
const toolInputType = "GENERIC_TOOL_INPUT";
|
|
37
|
+
function getDeserializedJsonObj(obj: GenericToolInput, isParentJsonObj?: boolean): object;
|
|
38
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 {@link #eNGenerative-ai-agentsLatest(ENGenerative-ai-agentsLatestRequest) eNGenerative-ai-agentsLatest}.
|
|
11
|
+
|
|
12
|
+
To learn more about the service, see the [Generative AI Agents documentation](https://docs.oracle.com/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, 2025, 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.GenericToolInput = void 0;
|
|
44
|
+
const model = __importStar(require("../model"));
|
|
45
|
+
var GenericToolInput;
|
|
46
|
+
(function (GenericToolInput) {
|
|
47
|
+
function getJsonObj(obj, isParentJsonObj) {
|
|
48
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj ? obj : model.ToolInput.getJsonObj(obj))), {});
|
|
49
|
+
return jsonObj;
|
|
50
|
+
}
|
|
51
|
+
GenericToolInput.getJsonObj = getJsonObj;
|
|
52
|
+
GenericToolInput.toolInputType = "GENERIC_TOOL_INPUT";
|
|
53
|
+
function getDeserializedJsonObj(obj, isParentJsonObj) {
|
|
54
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
55
|
+
? obj
|
|
56
|
+
: model.ToolInput.getDeserializedJsonObj(obj))), {});
|
|
57
|
+
return jsonObj;
|
|
58
|
+
}
|
|
59
|
+
GenericToolInput.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
60
|
+
})(GenericToolInput = exports.GenericToolInput || (exports.GenericToolInput = {}));
|
|
61
|
+
//# sourceMappingURL=generic-tool-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generic-tool-input.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/generic-tool-input.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAgBlC,IAAiB,gBAAgB,CAoBhC;AApBD,WAAiB,gBAAgB;IAC/B,SAAgB,UAAU,CAAC,GAAqB,EAAE,eAAyB;QACzE,MAAM,OAAO,mCACR,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAE,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG,CAAsB,CAAC,GAC/E,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAPe,2BAAU,aAOzB,CAAA;IACY,8BAAa,GAAG,oBAAoB,CAAC;IAClD,SAAgB,sBAAsB,CAAC,GAAqB,EAAE,eAAyB;QACrF,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,GAAG,CAAsB,CAAC,GACnE,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IATe,uCAAsB,yBASrC,CAAA;AACH,CAAC,EApBgB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAoBhC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 {@link #eNGenerative-ai-agentsLatest(ENGenerative-ai-agentsLatestRequest) eNGenerative-ai-agentsLatest}.
|
|
10
|
+
|
|
11
|
+
To learn more about the service, see the [Generative AI Agents documentation](https://docs.oracle.com/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, 2025, 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
|
+
* Specifies an output format for tools that return freeform or unstructured JSON content.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export interface GenericToolOutput extends model.ToolOutput {
|
|
28
|
+
/**
|
|
29
|
+
* Specifies the freeform JSON object containing the tool\u2019s output.
|
|
30
|
+
*/
|
|
31
|
+
"output": any;
|
|
32
|
+
"toolOutputType": string;
|
|
33
|
+
}
|
|
34
|
+
export declare namespace GenericToolOutput {
|
|
35
|
+
function getJsonObj(obj: GenericToolOutput, isParentJsonObj?: boolean): object;
|
|
36
|
+
const toolOutputType = "GENERIC_TOOL_OUTPUT";
|
|
37
|
+
function getDeserializedJsonObj(obj: GenericToolOutput, isParentJsonObj?: boolean): object;
|
|
38
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 {@link #eNGenerative-ai-agentsLatest(ENGenerative-ai-agentsLatestRequest) eNGenerative-ai-agentsLatest}.
|
|
11
|
+
|
|
12
|
+
To learn more about the service, see the [Generative AI Agents documentation](https://docs.oracle.com/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, 2025, 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.GenericToolOutput = void 0;
|
|
44
|
+
const model = __importStar(require("../model"));
|
|
45
|
+
var GenericToolOutput;
|
|
46
|
+
(function (GenericToolOutput) {
|
|
47
|
+
function getJsonObj(obj, isParentJsonObj) {
|
|
48
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj ? obj : model.ToolOutput.getJsonObj(obj))), {});
|
|
49
|
+
return jsonObj;
|
|
50
|
+
}
|
|
51
|
+
GenericToolOutput.getJsonObj = getJsonObj;
|
|
52
|
+
GenericToolOutput.toolOutputType = "GENERIC_TOOL_OUTPUT";
|
|
53
|
+
function getDeserializedJsonObj(obj, isParentJsonObj) {
|
|
54
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
55
|
+
? obj
|
|
56
|
+
: model.ToolOutput.getDeserializedJsonObj(obj))), {});
|
|
57
|
+
return jsonObj;
|
|
58
|
+
}
|
|
59
|
+
GenericToolOutput.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
60
|
+
})(GenericToolOutput = exports.GenericToolOutput || (exports.GenericToolOutput = {}));
|
|
61
|
+
//# sourceMappingURL=generic-tool-output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generic-tool-output.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/generic-tool-output.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAgBlC,IAAiB,iBAAiB,CAuBjC;AAvBD,WAAiB,iBAAiB;IAChC,SAAgB,UAAU,CAAC,GAAsB,EAAE,eAAyB;QAC1E,MAAM,OAAO,mCACR,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAE,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,GAAG,CAAuB,CAAC,GACjF,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAPe,4BAAU,aAOzB,CAAA;IACY,gCAAc,GAAG,qBAAqB,CAAC;IACpD,SAAgB,sBAAsB,CACpC,GAAsB,EACtB,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,UAAU,CAAC,sBAAsB,CAAC,GAAG,CAAuB,CAAC,GACrE,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,wCAAsB,yBAYrC,CAAA;AACH,CAAC,EAvBgB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAuBjC"}
|
package/lib/model/index.d.ts
CHANGED
|
@@ -59,6 +59,12 @@ import * as SourceDetails from "./source-details";
|
|
|
59
59
|
export import SourceDetails = SourceDetails.SourceDetails;
|
|
60
60
|
import * as SourceLocation from "./source-location";
|
|
61
61
|
export import SourceLocation = SourceLocation.SourceLocation;
|
|
62
|
+
import * as SqlResultFiles from "./sql-result-files";
|
|
63
|
+
export import SqlResultFiles = SqlResultFiles.SqlResultFiles;
|
|
64
|
+
import * as ToolInput from "./tool-input";
|
|
65
|
+
export import ToolInput = ToolInput.ToolInput;
|
|
66
|
+
import * as ToolOutput from "./tool-output";
|
|
67
|
+
export import ToolOutput = ToolOutput.ToolOutput;
|
|
62
68
|
import * as Trace from "./trace";
|
|
63
69
|
export import Trace = Trace.Trace;
|
|
64
70
|
import * as UpdateSessionDetails from "./update-session-details";
|
|
@@ -77,6 +83,10 @@ import * as FunctionCallingRequiredAction from "./function-calling-required-acti
|
|
|
77
83
|
export import FunctionCallingRequiredAction = FunctionCallingRequiredAction.FunctionCallingRequiredAction;
|
|
78
84
|
import * as GenerationTrace from "./generation-trace";
|
|
79
85
|
export import GenerationTrace = GenerationTrace.GenerationTrace;
|
|
86
|
+
import * as GenericToolInput from "./generic-tool-input";
|
|
87
|
+
export import GenericToolInput = GenericToolInput.GenericToolInput;
|
|
88
|
+
import * as GenericToolOutput from "./generic-tool-output";
|
|
89
|
+
export import GenericToolOutput = GenericToolOutput.GenericToolOutput;
|
|
80
90
|
import * as HumanApprovalPerformedAction from "./human-approval-performed-action";
|
|
81
91
|
export import HumanApprovalPerformedAction = HumanApprovalPerformedAction.HumanApprovalPerformedAction;
|
|
82
92
|
import * as HumanApprovalRequiredAction from "./human-approval-required-action";
|
|
@@ -89,7 +99,11 @@ import * as OciOpenSearchSourceLocation from "./oci-open-search-source-location"
|
|
|
89
99
|
export import OciOpenSearchSourceLocation = OciOpenSearchSourceLocation.OciOpenSearchSourceLocation;
|
|
90
100
|
import * as PlanningTrace from "./planning-trace";
|
|
91
101
|
export import PlanningTrace = PlanningTrace.PlanningTrace;
|
|
102
|
+
import * as RagToolOutput from "./rag-tool-output";
|
|
103
|
+
export import RagToolOutput = RagToolOutput.RagToolOutput;
|
|
92
104
|
import * as RetrievalTrace from "./retrieval-trace";
|
|
93
105
|
export import RetrievalTrace = RetrievalTrace.RetrievalTrace;
|
|
106
|
+
import * as SqlToolOutput from "./sql-tool-output";
|
|
107
|
+
export import SqlToolOutput = SqlToolOutput.SqlToolOutput;
|
|
94
108
|
import * as ToolInvocationTrace from "./tool-invocation-trace";
|
|
95
109
|
export import ToolInvocationTrace = ToolInvocationTrace.ToolInvocationTrace;
|
package/lib/model/index.js
CHANGED
|
@@ -40,7 +40,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
40
40
|
return result;
|
|
41
41
|
};
|
|
42
42
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
-
exports.ToolInvocationTrace = exports.RetrievalTrace = exports.PlanningTrace = exports.OciOpenSearchSourceLocation = exports.OciObjectStorageSourceLocation = exports.OciDatabaseSourceLocation = exports.HumanApprovalRequiredAction = exports.HumanApprovalPerformedAction = exports.GenerationTrace = exports.FunctionCallingRequiredAction = exports.FunctionCallingPerformedAction = exports.ExecutionTrace = exports.ErrorTrace = exports.UsageDetails = exports.Usage = exports.UpdateSessionDetails = exports.Trace = exports.SourceLocation = exports.SourceDetails = exports.Session = exports.RetrieveMetadataDetails = exports.RequiredAction = exports.PerformedAction = exports.ParagraphCitation = exports.Paragraph = exports.ModelParams = exports.ModelDetails = exports.MetadataFilter = exports.MessageContent = exports.Message = exports.KnowledgeBaseMetadataValue = exports.KnowledgeBaseMetadataSummary = exports.FunctionCall = exports.CreateSessionDetails = exports.Citation = exports.ChatResult = exports.ChatDetails = void 0;
|
|
43
|
+
exports.ToolInvocationTrace = exports.SqlToolOutput = exports.RetrievalTrace = exports.RagToolOutput = exports.PlanningTrace = exports.OciOpenSearchSourceLocation = exports.OciObjectStorageSourceLocation = exports.OciDatabaseSourceLocation = exports.HumanApprovalRequiredAction = exports.HumanApprovalPerformedAction = exports.GenericToolOutput = exports.GenericToolInput = exports.GenerationTrace = exports.FunctionCallingRequiredAction = exports.FunctionCallingPerformedAction = exports.ExecutionTrace = exports.ErrorTrace = exports.UsageDetails = exports.Usage = exports.UpdateSessionDetails = exports.Trace = exports.ToolOutput = exports.ToolInput = exports.SqlResultFiles = exports.SourceLocation = exports.SourceDetails = exports.Session = exports.RetrieveMetadataDetails = exports.RequiredAction = exports.PerformedAction = exports.ParagraphCitation = exports.Paragraph = exports.ModelParams = exports.ModelDetails = exports.MetadataFilter = exports.MessageContent = exports.Message = exports.KnowledgeBaseMetadataValue = exports.KnowledgeBaseMetadataSummary = exports.FunctionCall = exports.CreateSessionDetails = exports.Citation = exports.ChatResult = exports.ChatDetails = void 0;
|
|
44
44
|
const ChatDetails = __importStar(require("./chat-details"));
|
|
45
45
|
exports.ChatDetails = ChatDetails.ChatDetails;
|
|
46
46
|
const ChatResult = __importStar(require("./chat-result"));
|
|
@@ -81,6 +81,12 @@ const SourceDetails = __importStar(require("./source-details"));
|
|
|
81
81
|
exports.SourceDetails = SourceDetails.SourceDetails;
|
|
82
82
|
const SourceLocation = __importStar(require("./source-location"));
|
|
83
83
|
exports.SourceLocation = SourceLocation.SourceLocation;
|
|
84
|
+
const SqlResultFiles = __importStar(require("./sql-result-files"));
|
|
85
|
+
exports.SqlResultFiles = SqlResultFiles.SqlResultFiles;
|
|
86
|
+
const ToolInput = __importStar(require("./tool-input"));
|
|
87
|
+
exports.ToolInput = ToolInput.ToolInput;
|
|
88
|
+
const ToolOutput = __importStar(require("./tool-output"));
|
|
89
|
+
exports.ToolOutput = ToolOutput.ToolOutput;
|
|
84
90
|
const Trace = __importStar(require("./trace"));
|
|
85
91
|
exports.Trace = Trace.Trace;
|
|
86
92
|
const UpdateSessionDetails = __importStar(require("./update-session-details"));
|
|
@@ -99,6 +105,10 @@ const FunctionCallingRequiredAction = __importStar(require("./function-calling-r
|
|
|
99
105
|
exports.FunctionCallingRequiredAction = FunctionCallingRequiredAction.FunctionCallingRequiredAction;
|
|
100
106
|
const GenerationTrace = __importStar(require("./generation-trace"));
|
|
101
107
|
exports.GenerationTrace = GenerationTrace.GenerationTrace;
|
|
108
|
+
const GenericToolInput = __importStar(require("./generic-tool-input"));
|
|
109
|
+
exports.GenericToolInput = GenericToolInput.GenericToolInput;
|
|
110
|
+
const GenericToolOutput = __importStar(require("./generic-tool-output"));
|
|
111
|
+
exports.GenericToolOutput = GenericToolOutput.GenericToolOutput;
|
|
102
112
|
const HumanApprovalPerformedAction = __importStar(require("./human-approval-performed-action"));
|
|
103
113
|
exports.HumanApprovalPerformedAction = HumanApprovalPerformedAction.HumanApprovalPerformedAction;
|
|
104
114
|
const HumanApprovalRequiredAction = __importStar(require("./human-approval-required-action"));
|
|
@@ -111,8 +121,12 @@ const OciOpenSearchSourceLocation = __importStar(require("./oci-open-search-sour
|
|
|
111
121
|
exports.OciOpenSearchSourceLocation = OciOpenSearchSourceLocation.OciOpenSearchSourceLocation;
|
|
112
122
|
const PlanningTrace = __importStar(require("./planning-trace"));
|
|
113
123
|
exports.PlanningTrace = PlanningTrace.PlanningTrace;
|
|
124
|
+
const RagToolOutput = __importStar(require("./rag-tool-output"));
|
|
125
|
+
exports.RagToolOutput = RagToolOutput.RagToolOutput;
|
|
114
126
|
const RetrievalTrace = __importStar(require("./retrieval-trace"));
|
|
115
127
|
exports.RetrievalTrace = RetrievalTrace.RetrievalTrace;
|
|
128
|
+
const SqlToolOutput = __importStar(require("./sql-tool-output"));
|
|
129
|
+
exports.SqlToolOutput = SqlToolOutput.SqlToolOutput;
|
|
116
130
|
const ToolInvocationTrace = __importStar(require("./tool-invocation-trace"));
|
|
117
131
|
exports.ToolInvocationTrace = ToolInvocationTrace.ToolInvocationTrace;
|
|
118
132
|
//# sourceMappingURL=index.js.map
|
package/lib/model/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;AAEH,4DAA8C;AAChC,QAAA,WAAW,GAAG,WAAW,CAAC,WAAW,CAAC;AACpD,0DAA4C;AAC9B,QAAA,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;AACjD,qDAAuC;AACzB,QAAA,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC;AAC3C,+EAAiE;AACnD,QAAA,oBAAoB,GAAG,oBAAoB,CAAC,oBAAoB,CAAC;AAC/E,8DAAgD;AAClC,QAAA,YAAY,GAAG,YAAY,CAAC,YAAY,CAAC;AACvD,gGAAkF;AACpE,QAAA,4BAA4B,GAAG,4BAA4B,CAAC,4BAA4B,CAAC;AACvG,4FAA8E;AAChE,QAAA,0BAA0B,GAAG,0BAA0B,CAAC,0BAA0B,CAAC;AACjG,mDAAqC;AACvB,QAAA,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;AACxC,kEAAoD;AACtC,QAAA,cAAc,GAAG,cAAc,CAAC,cAAc,CAAC;AAC7D,kEAAoD;AACtC,QAAA,cAAc,GAAG,cAAc,CAAC,cAAc,CAAC;AAC7D,8DAAgD;AAClC,QAAA,YAAY,GAAG,YAAY,CAAC,YAAY,CAAC;AACvD,4DAA8C;AAChC,QAAA,WAAW,GAAG,WAAW,CAAC,WAAW,CAAC;AACpD,uDAAyC;AAC3B,QAAA,SAAS,GAAG,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A8B,GAAG,8BAA8B,CAAC,8BAA8B,CAAC;AAC7G,kGAAoF;AACtE,QAAA,6BAA6B,GAAG,6BAA6B,CAAC,6BAA6B,CAAC;AAC1G,oEAAsD;AACxC,QAAA,eAAe,GAAG,eAAe,CAAC,eAAe,CAAC;AAChE,uEAAyD;AAC3C,QAAA,gBAAgB,GAAG,gBAAgB,CAAC,gBAAgB,CAAC;AACnE,yEAA2D;AAC7C,QAAA,iBAAiB,GAAG,iBAAiB,CAAC,iBAAiB,CAAC;AACtE,gGAAkF;AACpE,QAAA,4BAA4B,GAAG,4BAA4B,CAAC,4BAA4B,CAAC;AACvG,8FAAgF;AAClE,QAAA,2BAA2B,GAAG,2BAA2B,CAAC,2BAA2B,CAAC;AACpG,0FAA4E;AAC9D,QAAA,yBAAyB,GAAG,yBAAyB,CAAC,yBAAyB,CAAC;AAC9F,qGAAuF;AACzE,QAAA,8BAA8B,GAAG,8BAA8B,CAAC,8BAA8B,CAAC;AAC7G,+FAAiF;AACnE,QAAA,2BAA2B,GAAG,2BAA2B,CAAC,2BAA2B,CAAC;AACpG,gEAAkD;AACpC,QAAA,aAAa,GAAG,aAAa,CAAC,aAAa,CAAC;AAC1D,iEAAmD;AACrC,QAAA,aAAa,GAAG,aAAa,CAAC,aAAa,CAAC;AAC1D,kEAAoD;AACtC,QAAA,cAAc,GAAG,cAAc,CAAC,cAAc,CAAC;AAC7D,iEAAmD;AACrC,QAAA,aAAa,GAAG,aAAa,CAAC,aAAa,CAAC;AAC1D,6EAA+D;AACjD,QAAA,mBAAmB,GAAG,mBAAmB,CAAC,mBAAmB,CAAC"}
|
|
@@ -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 {@link #eNGenerative-ai-agentsLatest(ENGenerative-ai-agentsLatestRequest) eNGenerative-ai-agentsLatest}.
|
|
10
|
+
|
|
11
|
+
To learn more about the service, see the [Generative AI Agents documentation](https://docs.oracle.com/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, 2025, 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
|
+
* Specifies the output format for RAG tool, including the generated answer and citations.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export interface RagToolOutput extends model.ToolOutput {
|
|
28
|
+
/**
|
|
29
|
+
* Specifies the generated answer from the RAG tool.
|
|
30
|
+
*/
|
|
31
|
+
"text": string;
|
|
32
|
+
/**
|
|
33
|
+
* Citations to data sources used for tool's generated answer.
|
|
34
|
+
*/
|
|
35
|
+
"citations"?: Array<model.Citation>;
|
|
36
|
+
/**
|
|
37
|
+
* A list of citations used to generate the paragraphs of the tool's generated answer.
|
|
38
|
+
*/
|
|
39
|
+
"paragraphCitations"?: Array<model.ParagraphCitation>;
|
|
40
|
+
"toolOutputType": string;
|
|
41
|
+
}
|
|
42
|
+
export declare namespace RagToolOutput {
|
|
43
|
+
function getJsonObj(obj: RagToolOutput, isParentJsonObj?: boolean): object;
|
|
44
|
+
const toolOutputType = "RAG_TOOL_OUTPUT";
|
|
45
|
+
function getDeserializedJsonObj(obj: RagToolOutput, isParentJsonObj?: boolean): object;
|
|
46
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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 {@link #eNGenerative-ai-agentsLatest(ENGenerative-ai-agentsLatestRequest) eNGenerative-ai-agentsLatest}.
|
|
11
|
+
|
|
12
|
+
To learn more about the service, see the [Generative AI Agents documentation](https://docs.oracle.com/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, 2025, 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.RagToolOutput = void 0;
|
|
44
|
+
const model = __importStar(require("../model"));
|
|
45
|
+
var RagToolOutput;
|
|
46
|
+
(function (RagToolOutput) {
|
|
47
|
+
function getJsonObj(obj, isParentJsonObj) {
|
|
48
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj ? obj : model.ToolOutput.getJsonObj(obj))), {
|
|
49
|
+
"citations": obj.citations
|
|
50
|
+
? obj.citations.map(item => {
|
|
51
|
+
return model.Citation.getJsonObj(item);
|
|
52
|
+
})
|
|
53
|
+
: undefined,
|
|
54
|
+
"paragraphCitations": obj.paragraphCitations
|
|
55
|
+
? obj.paragraphCitations.map(item => {
|
|
56
|
+
return model.ParagraphCitation.getJsonObj(item);
|
|
57
|
+
})
|
|
58
|
+
: undefined
|
|
59
|
+
});
|
|
60
|
+
return jsonObj;
|
|
61
|
+
}
|
|
62
|
+
RagToolOutput.getJsonObj = getJsonObj;
|
|
63
|
+
RagToolOutput.toolOutputType = "RAG_TOOL_OUTPUT";
|
|
64
|
+
function getDeserializedJsonObj(obj, isParentJsonObj) {
|
|
65
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj ? obj : model.ToolOutput.getDeserializedJsonObj(obj))), {
|
|
66
|
+
"citations": obj.citations
|
|
67
|
+
? obj.citations.map(item => {
|
|
68
|
+
return model.Citation.getDeserializedJsonObj(item);
|
|
69
|
+
})
|
|
70
|
+
: undefined,
|
|
71
|
+
"paragraphCitations": obj.paragraphCitations
|
|
72
|
+
? obj.paragraphCitations.map(item => {
|
|
73
|
+
return model.ParagraphCitation.getDeserializedJsonObj(item);
|
|
74
|
+
})
|
|
75
|
+
: undefined
|
|
76
|
+
});
|
|
77
|
+
return jsonObj;
|
|
78
|
+
}
|
|
79
|
+
RagToolOutput.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
80
|
+
})(RagToolOutput = exports.RagToolOutput || (exports.RagToolOutput = {}));
|
|
81
|
+
//# sourceMappingURL=rag-tool-output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rag-tool-output.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/rag-tool-output.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAwBlC,IAAiB,aAAa,CAwC7B;AAxCD,WAAiB,aAAa;IAC5B,SAAgB,UAAU,CAAC,GAAkB,EAAE,eAAyB;QACtE,MAAM,OAAO,mCACR,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAE,KAAK,CAAC,UAAU,CAAC,UA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CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAlBe,oCAAsB,yBAkBrC,CAAA;AACH,CAAC,EAxCgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAwC7B"}
|
|
@@ -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 {@link #eNGenerative-ai-agentsLatest(ENGenerative-ai-agentsLatestRequest) eNGenerative-ai-agentsLatest}.
|
|
10
|
+
|
|
11
|
+
To learn more about the service, see the [Generative AI Agents documentation](https://docs.oracle.com/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, 2025, 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
|
+
* Specifies file locations for SQL result data.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export interface SqlResultFiles {
|
|
27
|
+
/**
|
|
28
|
+
* Specifies the path or URL to status metadata.
|
|
29
|
+
*/
|
|
30
|
+
"statusFile"?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Specifies the path or URL to the full SQL result data.
|
|
33
|
+
*/
|
|
34
|
+
"dataFile"?: string;
|
|
35
|
+
}
|
|
36
|
+
export declare namespace SqlResultFiles {
|
|
37
|
+
function getJsonObj(obj: SqlResultFiles): object;
|
|
38
|
+
function getDeserializedJsonObj(obj: SqlResultFiles): object;
|
|
39
|
+
}
|
|
@@ -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 {@link #eNGenerative-ai-agentsLatest(ENGenerative-ai-agentsLatestRequest) eNGenerative-ai-agentsLatest}.
|
|
11
|
+
|
|
12
|
+
To learn more about the service, see the [Generative AI Agents documentation](https://docs.oracle.com/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, 2025, 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.SqlResultFiles = void 0;
|
|
25
|
+
var SqlResultFiles;
|
|
26
|
+
(function (SqlResultFiles) {
|
|
27
|
+
function getJsonObj(obj) {
|
|
28
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
29
|
+
return jsonObj;
|
|
30
|
+
}
|
|
31
|
+
SqlResultFiles.getJsonObj = getJsonObj;
|
|
32
|
+
function getDeserializedJsonObj(obj) {
|
|
33
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
34
|
+
return jsonObj;
|
|
35
|
+
}
|
|
36
|
+
SqlResultFiles.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
37
|
+
})(SqlResultFiles = exports.SqlResultFiles || (exports.SqlResultFiles = {}));
|
|
38
|
+
//# sourceMappingURL=sql-result-files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sql-result-files.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/sql-result-files.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;AAoBH,IAAiB,cAAc,CAW9B;AAXD,WAAiB,cAAc;IAC7B,SAAgB,UAAU,CAAC,GAAmB;QAC5C,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,yBAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAmB;QACxD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,qCAAsB,yBAIrC,CAAA;AACH,CAAC,EAXgB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAW9B"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 {@link #eNGenerative-ai-agentsLatest(ENGenerative-ai-agentsLatestRequest) eNGenerative-ai-agentsLatest}.
|
|
10
|
+
|
|
11
|
+
To learn more about the service, see the [Generative AI Agents documentation](https://docs.oracle.com/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, 2025, 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
|
+
* Specifies the output format for SQL tools, including the generated SQL statement and an optional preview of the query result.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export interface SqlToolOutput extends model.ToolOutput {
|
|
28
|
+
/**
|
|
29
|
+
* Specifies the generated SQL query.
|
|
30
|
+
*/
|
|
31
|
+
"generatedSql": string;
|
|
32
|
+
/**
|
|
33
|
+
* Represents preview rows from the SQL query.
|
|
34
|
+
*/
|
|
35
|
+
"result"?: Array<any>;
|
|
36
|
+
"resultFiles"?: model.SqlResultFiles;
|
|
37
|
+
/**
|
|
38
|
+
* Specifies optional metadata content.
|
|
39
|
+
*/
|
|
40
|
+
"additionalInfo"?: string;
|
|
41
|
+
"toolOutputType": string;
|
|
42
|
+
}
|
|
43
|
+
export declare namespace SqlToolOutput {
|
|
44
|
+
function getJsonObj(obj: SqlToolOutput, isParentJsonObj?: boolean): object;
|
|
45
|
+
const toolOutputType = "SQL_TOOL_OUTPUT";
|
|
46
|
+
function getDeserializedJsonObj(obj: SqlToolOutput, isParentJsonObj?: boolean): object;
|
|
47
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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 {@link #eNGenerative-ai-agentsLatest(ENGenerative-ai-agentsLatestRequest) eNGenerative-ai-agentsLatest}.
|
|
11
|
+
|
|
12
|
+
To learn more about the service, see the [Generative AI Agents documentation](https://docs.oracle.com/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, 2025, 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.SqlToolOutput = void 0;
|
|
44
|
+
const model = __importStar(require("../model"));
|
|
45
|
+
var SqlToolOutput;
|
|
46
|
+
(function (SqlToolOutput) {
|
|
47
|
+
function getJsonObj(obj, isParentJsonObj) {
|
|
48
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj ? obj : model.ToolOutput.getJsonObj(obj))), {
|
|
49
|
+
"resultFiles": obj.resultFiles
|
|
50
|
+
? model.SqlResultFiles.getJsonObj(obj.resultFiles)
|
|
51
|
+
: undefined
|
|
52
|
+
});
|
|
53
|
+
return jsonObj;
|
|
54
|
+
}
|
|
55
|
+
SqlToolOutput.getJsonObj = getJsonObj;
|
|
56
|
+
SqlToolOutput.toolOutputType = "SQL_TOOL_OUTPUT";
|
|
57
|
+
function getDeserializedJsonObj(obj, isParentJsonObj) {
|
|
58
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj ? obj : model.ToolOutput.getDeserializedJsonObj(obj))), {
|
|
59
|
+
"resultFiles": obj.resultFiles
|
|
60
|
+
? model.SqlResultFiles.getDeserializedJsonObj(obj.resultFiles)
|
|
61
|
+
: undefined
|
|
62
|
+
});
|
|
63
|
+
return jsonObj;
|
|
64
|
+
}
|
|
65
|
+
SqlToolOutput.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
66
|
+
})(SqlToolOutput = exports.SqlToolOutput || (exports.SqlToolOutput = {}));
|
|
67
|
+
//# sourceMappingURL=sql-tool-output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sql-tool-output.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/sql-tool-output.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAyBlC,IAAiB,aAAa,CA0B7B;AA1BD,WAAiB,aAAa;IAC5B,SAAgB,UAAU,CAAC,GAAkB,EAAE,eAAyB;QACtE,MAAM,OAAO,mCACR,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAE,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,GAAG,CAAmB,CAAC,GAC7E;YACD,aAAa,EAAE,GAAG,CAAC,WAAW;gBAC5B,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,CAAC,WAAW,CAAC;gBAClD,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAXe,wBAAU,aAWzB,CAAA;IACY,4BAAc,GAAG,iBAAiB,CAAC;IAChD,SAAgB,sBAAsB,CAAC,GAAkB,EAAE,eAAyB;QAClF,MAAM,OAAO,mCACR,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAE,KAAK,CAAC,UAAU,CAAC,sBAAsB,CAAC,GAAG,CAAmB,CAAC,GACzF;YACD,aAAa,EAAE,GAAG,CAAC,WAAW;gBAC5B,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,sBAAsB,CAAC,GAAG,CAAC,WAAW,CAAC;gBAC9D,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAXe,oCAAsB,yBAWrC,CAAA;AACH,CAAC,EA1BgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QA0B7B"}
|
|
@@ -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 {@link #eNGenerative-ai-agentsLatest(ENGenerative-ai-agentsLatestRequest) eNGenerative-ai-agentsLatest}.
|
|
10
|
+
|
|
11
|
+
To learn more about the service, see the [Generative AI Agents documentation](https://docs.oracle.com/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, 2025, 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
|
+
* Base object for tool input parameters. The 'toolInputType' discriminator determines the specific input structure to be used.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export interface ToolInput {
|
|
27
|
+
/**
|
|
28
|
+
* Unique OCID of the tool.
|
|
29
|
+
*/
|
|
30
|
+
"toolId": string;
|
|
31
|
+
"toolInputType": string;
|
|
32
|
+
}
|
|
33
|
+
export declare namespace ToolInput {
|
|
34
|
+
function getJsonObj(obj: ToolInput): object;
|
|
35
|
+
function getDeserializedJsonObj(obj: ToolInput): object;
|
|
36
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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 {@link #eNGenerative-ai-agentsLatest(ENGenerative-ai-agentsLatestRequest) eNGenerative-ai-agentsLatest}.
|
|
11
|
+
|
|
12
|
+
To learn more about the service, see the [Generative AI Agents documentation](https://docs.oracle.com/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, 2025, 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.ToolInput = void 0;
|
|
44
|
+
const model = __importStar(require("../model"));
|
|
45
|
+
const common = require("oci-common");
|
|
46
|
+
var ToolInput;
|
|
47
|
+
(function (ToolInput) {
|
|
48
|
+
function getJsonObj(obj) {
|
|
49
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
50
|
+
if (obj && "toolInputType" in obj && obj.toolInputType) {
|
|
51
|
+
switch (obj.toolInputType) {
|
|
52
|
+
case "GENERIC_TOOL_INPUT":
|
|
53
|
+
return model.GenericToolInput.getJsonObj(jsonObj, true);
|
|
54
|
+
default:
|
|
55
|
+
if (common.LOG.logger)
|
|
56
|
+
common.LOG.logger.info(`Unknown value for: ${obj.toolInputType}`);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return jsonObj;
|
|
60
|
+
}
|
|
61
|
+
ToolInput.getJsonObj = getJsonObj;
|
|
62
|
+
function getDeserializedJsonObj(obj) {
|
|
63
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
64
|
+
if (obj && "toolInputType" in obj && obj.toolInputType) {
|
|
65
|
+
switch (obj.toolInputType) {
|
|
66
|
+
case "GENERIC_TOOL_INPUT":
|
|
67
|
+
return model.GenericToolInput.getDeserializedJsonObj(jsonObj, true);
|
|
68
|
+
default:
|
|
69
|
+
if (common.LOG.logger)
|
|
70
|
+
common.LOG.logger.info(`Unknown value for: ${obj.toolInputType}`);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return jsonObj;
|
|
74
|
+
}
|
|
75
|
+
ToolInput.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
76
|
+
})(ToolInput = exports.ToolInput || (exports.ToolInput = {}));
|
|
77
|
+
//# sourceMappingURL=tool-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-input.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/tool-input.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,qCAAsC;AAetC,IAAiB,SAAS,CA8BzB;AA9BD,WAAiB,SAAS;IACxB,SAAgB,UAAU,CAAC,GAAc;QACvC,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,eAAe,IAAI,GAAG,IAAI,GAAG,CAAC,aAAa,EAAE;YACtD,QAAQ,GAAG,CAAC,aAAa,EAAE;gBACzB,KAAK,oBAAoB;oBACvB,OAAO,KAAK,CAAC,gBAAgB,CAAC,UAAU,CAAkC,OAAQ,EAAE,IAAI,CAAC,CAAC;gBAC5F;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,aAAa,EAAE,CAAC,CAAC;aAC5F;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,oBAAU,aAYzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAc;QACnD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,eAAe,IAAI,GAAG,IAAI,GAAG,CAAC,aAAa,EAAE;YACtD,QAAQ,GAAG,CAAC,aAAa,EAAE;gBACzB,KAAK,oBAAoB;oBACvB,OAAO,KAAK,CAAC,gBAAgB,CAAC,sBAAsB,CACjB,OAAQ,EACzC,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,aAAa,EAAE,CAAC,CAAC;aAC5F;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAfe,gCAAsB,yBAerC,CAAA;AACH,CAAC,EA9BgB,SAAS,GAAT,iBAAS,KAAT,iBAAS,QA8BzB"}
|
|
@@ -21,20 +21,8 @@ To learn more about the service, see the [Generative AI Agents documentation](ht
|
|
|
21
21
|
*/
|
|
22
22
|
import * as model from "../model";
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
25
|
-
|
|
26
|
-
* |-
|
|
27
|
-
* |*The following legal notice applies to Oracle pre-GA releases. For copyright and other applicable notices, see [Oracle Legal Notices](https://docs.oracle.com/iaas/Content/legalnotices.htm).*
|
|
28
|
-
* <p>
|
|
29
|
-
|*Pre-General Availability Draft Documentation Notice*|
|
|
30
|
-
* |-
|
|
31
|
-
* |*This documentation is in pre-General Availability status and is intended for demonstration and preliminary use only. It may not be specific to the hardware on which you are using the software. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to this documentation and will not be responsible for any loss, costs, or damages incurred due to the use of this documentation. This documentation is not a commitment by Oracle to deliver any material, code, functionality or services. This documentation, and Oracle Pre-GA programs and services are subject to change at any time without notice and, accordingly, should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality for Oracle's Pre-GA programs and services remains at the sole discretion of Oracle. All release dates or other predictions of future events are subject to change. The future availability of any future Oracle program or service should not be relied on in entering into any license or service agreement with Oracle.*
|
|
32
|
-
* **GenerationTrace**
|
|
33
|
-
* <p>
|
|
34
|
-
|
|
35
|
-
* The trace information about the tool selection from multiple tools.
|
|
36
|
-
*
|
|
37
|
-
*/
|
|
24
|
+
* The trace information about the tool selection from multiple tools.
|
|
25
|
+
*/
|
|
38
26
|
export interface ToolInvocationTrace extends model.Trace {
|
|
39
27
|
/**
|
|
40
28
|
* The ID of the selected tool based on the user query.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-invocation-trace.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/tool-invocation-trace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;
|
|
1
|
+
{"version":3,"file":"tool-invocation-trace.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/tool-invocation-trace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAuBlC,IAAiB,mBAAmB,CAqBnC;AArBD,WAAiB,mBAAmB;IAClC,SAAgB,UAAU,CAAC,GAAwB,EAAE,eAAyB;QAC5E,MAAM,OAAO,mCACR,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAE,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAyB,CAAC,GAC9E,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAPe,8BAAU,aAOzB,CAAA;IACY,6BAAS,GAAG,uBAAuB,CAAC;IACjD,SAAgB,sBAAsB,CACpC,GAAwB,EACxB,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAE,KAAK,CAAC,KAAK,CAAC,sBAAsB,CAAC,GAAG,CAAyB,CAAC,GAC1F,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAVe,0CAAsB,yBAUrC,CAAA;AACH,CAAC,EArBgB,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAqBnC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 {@link #eNGenerative-ai-agentsLatest(ENGenerative-ai-agentsLatestRequest) eNGenerative-ai-agentsLatest}.
|
|
10
|
+
|
|
11
|
+
To learn more about the service, see the [Generative AI Agents documentation](https://docs.oracle.com/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, 2025, 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
|
+
* Base schema for tool outputs. Identified by {@code toolOutputType}, which determines the format of the output content.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export interface ToolOutput {
|
|
27
|
+
/**
|
|
28
|
+
* Specifies the unique OCID of the tool.
|
|
29
|
+
*/
|
|
30
|
+
"toolId": string;
|
|
31
|
+
/**
|
|
32
|
+
* Specifies the display name of the tool.
|
|
33
|
+
*/
|
|
34
|
+
"toolName"?: string;
|
|
35
|
+
"toolOutputType": string;
|
|
36
|
+
}
|
|
37
|
+
export declare namespace ToolOutput {
|
|
38
|
+
function getJsonObj(obj: ToolOutput): object;
|
|
39
|
+
function getDeserializedJsonObj(obj: ToolOutput): object;
|
|
40
|
+
}
|
|
@@ -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 {@link #eNGenerative-ai-agentsLatest(ENGenerative-ai-agentsLatestRequest) eNGenerative-ai-agentsLatest}.
|
|
11
|
+
|
|
12
|
+
To learn more about the service, see the [Generative AI Agents documentation](https://docs.oracle.com/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, 2025, 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.ToolOutput = void 0;
|
|
44
|
+
const model = __importStar(require("../model"));
|
|
45
|
+
const common = require("oci-common");
|
|
46
|
+
var ToolOutput;
|
|
47
|
+
(function (ToolOutput) {
|
|
48
|
+
function getJsonObj(obj) {
|
|
49
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
50
|
+
if (obj && "toolOutputType" in obj && obj.toolOutputType) {
|
|
51
|
+
switch (obj.toolOutputType) {
|
|
52
|
+
case "GENERIC_TOOL_OUTPUT":
|
|
53
|
+
return model.GenericToolOutput.getJsonObj(jsonObj, true);
|
|
54
|
+
case "SQL_TOOL_OUTPUT":
|
|
55
|
+
return model.SqlToolOutput.getJsonObj(jsonObj, true);
|
|
56
|
+
case "RAG_TOOL_OUTPUT":
|
|
57
|
+
return model.RagToolOutput.getJsonObj(jsonObj, true);
|
|
58
|
+
default:
|
|
59
|
+
if (common.LOG.logger)
|
|
60
|
+
common.LOG.logger.info(`Unknown value for: ${obj.toolOutputType}`);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return jsonObj;
|
|
64
|
+
}
|
|
65
|
+
ToolOutput.getJsonObj = getJsonObj;
|
|
66
|
+
function getDeserializedJsonObj(obj) {
|
|
67
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
68
|
+
if (obj && "toolOutputType" in obj && obj.toolOutputType) {
|
|
69
|
+
switch (obj.toolOutputType) {
|
|
70
|
+
case "GENERIC_TOOL_OUTPUT":
|
|
71
|
+
return model.GenericToolOutput.getDeserializedJsonObj(jsonObj, true);
|
|
72
|
+
case "SQL_TOOL_OUTPUT":
|
|
73
|
+
return model.SqlToolOutput.getDeserializedJsonObj(jsonObj, true);
|
|
74
|
+
case "RAG_TOOL_OUTPUT":
|
|
75
|
+
return model.RagToolOutput.getDeserializedJsonObj(jsonObj, true);
|
|
76
|
+
default:
|
|
77
|
+
if (common.LOG.logger)
|
|
78
|
+
common.LOG.logger.info(`Unknown value for: ${obj.toolOutputType}`);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return jsonObj;
|
|
82
|
+
}
|
|
83
|
+
ToolOutput.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
84
|
+
})(ToolOutput = exports.ToolOutput || (exports.ToolOutput = {}));
|
|
85
|
+
//# sourceMappingURL=tool-output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-output.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/tool-output.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,qCAAsC;AAmBtC,IAAiB,UAAU,CA+C1B;AA/CD,WAAiB,U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,EACtC,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,cAAc,EAAE,CAAC,CAAC;aAC7F;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAzBe,iCAAsB,yBAyBrC,CAAA;AACH,CAAC,EA/CgB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QA+C1B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oci-generativeaiagentruntime",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.113.0",
|
|
4
4
|
"description": "OCI NodeJS client for Generative Ai Agent Runtime Service",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"license": "(UPL-1.0 OR Apache-2.0)",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"oci-common": "2.
|
|
19
|
-
"oci-workrequests": "2.
|
|
18
|
+
"oci-common": "2.113.0",
|
|
19
|
+
"oci-workrequests": "2.113.0"
|
|
20
20
|
},
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"registry": "https://registry.npmjs.org"
|