oci-generativeaiagentruntime 2.110.0 → 2.111.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.
Files changed (44) hide show
  1. package/lib/model/error-trace.d.ts +4 -0
  2. package/lib/model/error-trace.js.map +1 -1
  3. package/lib/model/execution-trace.d.ts +41 -0
  4. package/lib/model/execution-trace.js +59 -0
  5. package/lib/model/execution-trace.js.map +1 -0
  6. package/lib/model/generation-trace.d.ts +8 -0
  7. package/lib/model/generation-trace.js +14 -2
  8. package/lib/model/generation-trace.js.map +1 -1
  9. package/lib/model/human-approval-required-action.d.ts +50 -0
  10. package/lib/model/human-approval-required-action.js +73 -0
  11. package/lib/model/human-approval-required-action.js.map +1 -0
  12. package/lib/model/index.d.ts +18 -0
  13. package/lib/model/index.js +19 -1
  14. package/lib/model/index.js.map +1 -1
  15. package/lib/model/model-details.d.ts +40 -0
  16. package/lib/model/model-details.js +64 -0
  17. package/lib/model/model-details.js.map +1 -0
  18. package/lib/model/model-params.d.ts +54 -0
  19. package/lib/model/model-params.js +38 -0
  20. package/lib/model/model-params.js.map +1 -0
  21. package/lib/model/planning-trace.d.ts +45 -0
  22. package/lib/model/planning-trace.js +71 -0
  23. package/lib/model/planning-trace.js.map +1 -0
  24. package/lib/model/required-action.js +4 -0
  25. package/lib/model/required-action.js.map +1 -1
  26. package/lib/model/retrieval-trace.d.ts +4 -0
  27. package/lib/model/retrieval-trace.js +10 -0
  28. package/lib/model/retrieval-trace.js.map +1 -1
  29. package/lib/model/source-details.d.ts +39 -0
  30. package/lib/model/source-details.js +38 -0
  31. package/lib/model/source-details.js.map +1 -0
  32. package/lib/model/tool-invocation-trace.d.ts +57 -0
  33. package/lib/model/tool-invocation-trace.js +59 -0
  34. package/lib/model/tool-invocation-trace.js.map +1 -0
  35. package/lib/model/trace.d.ts +14 -0
  36. package/lib/model/trace.js +18 -2
  37. package/lib/model/trace.js.map +1 -1
  38. package/lib/model/usage-details.d.ts +46 -0
  39. package/lib/model/usage-details.js +38 -0
  40. package/lib/model/usage-details.js.map +1 -0
  41. package/lib/model/usage.d.ts +33 -0
  42. package/lib/model/usage.js +72 -0
  43. package/lib/model/usage.js.map +1 -0
  44. package/package.json +3 -3
@@ -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.ModelParams = void 0;
25
+ var ModelParams;
26
+ (function (ModelParams) {
27
+ function getJsonObj(obj) {
28
+ const jsonObj = Object.assign(Object.assign({}, obj), {});
29
+ return jsonObj;
30
+ }
31
+ ModelParams.getJsonObj = getJsonObj;
32
+ function getDeserializedJsonObj(obj) {
33
+ const jsonObj = Object.assign(Object.assign({}, obj), {});
34
+ return jsonObj;
35
+ }
36
+ ModelParams.getDeserializedJsonObj = getDeserializedJsonObj;
37
+ })(ModelParams = exports.ModelParams || (exports.ModelParams = {}));
38
+ //# sourceMappingURL=model-params.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-params.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/model-params.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;AAmCH,IAAiB,WAAW,CAW3B;AAXD,WAAiB,WAAW;IAC1B,SAAgB,UAAU,CAAC,GAAgB;QACzC,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,sBAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAgB;QACrD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,kCAAsB,yBAIrC,CAAA;AACH,CAAC,EAXgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAW3B"}
@@ -0,0 +1,45 @@
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
+ * Contains trace information related to planning at the platform.
25
+ */
26
+ export interface PlanningTrace extends model.Trace {
27
+ /**
28
+ * Input prompt to planning LLM.
29
+ */
30
+ "input"?: string;
31
+ /**
32
+ * Output string from planning LLM.
33
+ */
34
+ "output"?: string;
35
+ /**
36
+ * Details of model and its usage.
37
+ */
38
+ "usage"?: Array<model.Usage>;
39
+ "traceType": string;
40
+ }
41
+ export declare namespace PlanningTrace {
42
+ function getJsonObj(obj: PlanningTrace, isParentJsonObj?: boolean): object;
43
+ const traceType = "PLANNING_TRACE";
44
+ function getDeserializedJsonObj(obj: PlanningTrace, isParentJsonObj?: boolean): object;
45
+ }
@@ -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 {@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.PlanningTrace = void 0;
44
+ const model = __importStar(require("../model"));
45
+ var PlanningTrace;
46
+ (function (PlanningTrace) {
47
+ function getJsonObj(obj, isParentJsonObj) {
48
+ const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj ? obj : model.Trace.getJsonObj(obj))), {
49
+ "usage": obj.usage
50
+ ? obj.usage.map(item => {
51
+ return model.Usage.getJsonObj(item);
52
+ })
53
+ : undefined
54
+ });
55
+ return jsonObj;
56
+ }
57
+ PlanningTrace.getJsonObj = getJsonObj;
58
+ PlanningTrace.traceType = "PLANNING_TRACE";
59
+ function getDeserializedJsonObj(obj, isParentJsonObj) {
60
+ const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj ? obj : model.Trace.getDeserializedJsonObj(obj))), {
61
+ "usage": obj.usage
62
+ ? obj.usage.map(item => {
63
+ return model.Usage.getDeserializedJsonObj(item);
64
+ })
65
+ : undefined
66
+ });
67
+ return jsonObj;
68
+ }
69
+ PlanningTrace.getDeserializedJsonObj = getDeserializedJsonObj;
70
+ })(PlanningTrace = exports.PlanningTrace || (exports.PlanningTrace = {}));
71
+ //# sourceMappingURL=planning-trace.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"planning-trace.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/planning-trace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAuBlC,IAAiB,aAAa,CA8B7B;AA9BD,WAAiB,aAAa;IAC5B,SAAgB,UAAU,CAAC,GAAkB,EAAE,eAAyB;QACtE,MAAM,OAAO,mCACR,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAE,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAmB,CAAC,GACxE;YACD,OAAO,EAAE,GAAG,CAAC,KAAK;gBAChB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACnB,OAAO,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACtC,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,wBAAU,aAazB,CAAA;IACY,uBAAS,GAAG,gBAAgB,CAAC;IAC1C,SAAgB,sBAAsB,CAAC,GAAkB,EAAE,eAAyB;QAClF,MAAM,OAAO,mCACR,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAE,KAAK,CAAC,KAAK,CAAC,sBAAsB,CAAC,GAAG,CAAmB,CAAC,GACpF;YACD,OAAO,EAAE,GAAG,CAAC,KAAK;gBAChB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACnB,OAAO,KAAK,CAAC,KAAK,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAClD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,oCAAsB,yBAarC,CAAA;AACH,CAAC,EA9BgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QA8B7B"}
@@ -49,6 +49,8 @@ var RequiredAction;
49
49
  const jsonObj = Object.assign(Object.assign({}, obj), {});
50
50
  if (obj && "requiredActionType" in obj && obj.requiredActionType) {
51
51
  switch (obj.requiredActionType) {
52
+ case "HUMAN_APPROVAL_REQUIRED_ACTION":
53
+ return model.HumanApprovalRequiredAction.getJsonObj(jsonObj, true);
52
54
  case "FUNCTION_CALLING_REQUIRED_ACTION":
53
55
  return model.FunctionCallingRequiredAction.getJsonObj(jsonObj, true);
54
56
  default:
@@ -63,6 +65,8 @@ var RequiredAction;
63
65
  const jsonObj = Object.assign(Object.assign({}, obj), {});
64
66
  if (obj && "requiredActionType" in obj && obj.requiredActionType) {
65
67
  switch (obj.requiredActionType) {
68
+ case "HUMAN_APPROVAL_REQUIRED_ACTION":
69
+ return model.HumanApprovalRequiredAction.getDeserializedJsonObj(jsonObj, true);
66
70
  case "FUNCTION_CALLING_REQUIRED_ACTION":
67
71
  return model.FunctionCallingRequiredAction.getDeserializedJsonObj(jsonObj, true);
68
72
  default:
@@ -1 +1 @@
1
- {"version":3,"file":"required-action.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/required-action.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,qCAAsC;AAetC,IAAiB,cAAc,CAmC9B;AAnCD,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,kCAAkC;oBACrC,OAAO,KAAK,CAAC,6BAA6B,CAAC,UAAU,CACL,OAAQ,EACtD,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;IAhBe,yBAAU,aAgBzB,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,kCAAkC;oBACrC,OAAO,KAAK,CAAC,6BAA6B,CAAC,sBAAsB,CACjB,OAAQ,EACtD,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;IAhBe,qCAAsB,yBAgBrC,CAAA;AACH,CAAC,EAnCgB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAmC9B"}
1
+ {"version":3,"file":"required-action.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/required-action.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,qCAAsC;AAetC,IAAiB,cAAc,CA6C9B;AA7CD,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,gCAAgC;oBACnC,OAAO,KAAK,CAAC,2BAA2B,CAAC,UAAU,CACL,OAAQ,EACpD,IAAI,CACL,CAAC;gBACJ,KAAK,kCAAkC;oBACrC,OAAO,KAAK,CAAC,6BAA6B,CAAC,UAAU,CACL,OAAQ,EACtD,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;IArBe,yBAAU,aAqBzB,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,gCAAgC;oBACnC,OAAO,KAAK,CAAC,2BAA2B,CAAC,sBAAsB,CACjB,OAAQ,EACpD,IAAI,CACL,CAAC;gBACJ,KAAK,kCAAkC;oBACrC,OAAO,KAAK,CAAC,6BAA6B,CAAC,sBAAsB,CACjB,OAAQ,EACtD,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;IArBe,qCAAsB,yBAqBrC,CAAA;AACH,CAAC,EA7CgB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QA6C9B"}
@@ -33,6 +33,10 @@ export interface RetrievalTrace extends model.Trace {
33
33
  * A list of citations retrieved from data sources.
34
34
  */
35
35
  "citations"?: Array<model.Citation>;
36
+ /**
37
+ * Details of model and its usage.
38
+ */
39
+ "usage"?: Array<model.Usage>;
36
40
  "traceType": string;
37
41
  }
38
42
  export declare namespace RetrievalTrace {
@@ -50,6 +50,11 @@ var RetrievalTrace;
50
50
  ? obj.citations.map(item => {
51
51
  return model.Citation.getJsonObj(item);
52
52
  })
53
+ : undefined,
54
+ "usage": obj.usage
55
+ ? obj.usage.map(item => {
56
+ return model.Usage.getJsonObj(item);
57
+ })
53
58
  : undefined
54
59
  });
55
60
  return jsonObj;
@@ -62,6 +67,11 @@ var RetrievalTrace;
62
67
  ? obj.citations.map(item => {
63
68
  return model.Citation.getDeserializedJsonObj(item);
64
69
  })
70
+ : undefined,
71
+ "usage": obj.usage
72
+ ? obj.usage.map(item => {
73
+ return model.Usage.getDeserializedJsonObj(item);
74
+ })
65
75
  : undefined
66
76
  });
67
77
  return jsonObj;
@@ -1 +1 @@
1
- {"version":3,"file":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C,EA9BgB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QA8B9B"}
1
+ {"version":3,"file":"retrieval-trace.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/retrieval-trace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAwBlC,IAAiB,cAAc,CAwC9B;AAxCD,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;YACb,OAAO,EAAE,GAAG,CAAC,KAAK;gBAChB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACnB,OAAO,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACtC,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAlBe,yBAAU,aAkBzB,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;YACb,OAAO,EAAE,GAAG,CAAC,KAAK;gBAChB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACnB,OAAO,KAAK,CAAC,KAAK,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAClD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAlBe,qCAAsB,yBAkBrC,CAAA;AACH,CAAC,EAxCgB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAwC9B"}
@@ -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
+ * The details of source of the event.
24
+ *
25
+ */
26
+ export interface SourceDetails {
27
+ /**
28
+ * Id of the source of the event.
29
+ */
30
+ "key"?: string;
31
+ /**
32
+ * Name of the source of the event.
33
+ */
34
+ "name"?: string;
35
+ }
36
+ export declare namespace SourceDetails {
37
+ function getJsonObj(obj: SourceDetails): object;
38
+ function getDeserializedJsonObj(obj: SourceDetails): 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.SourceDetails = void 0;
25
+ var SourceDetails;
26
+ (function (SourceDetails) {
27
+ function getJsonObj(obj) {
28
+ const jsonObj = Object.assign(Object.assign({}, obj), {});
29
+ return jsonObj;
30
+ }
31
+ SourceDetails.getJsonObj = getJsonObj;
32
+ function getDeserializedJsonObj(obj) {
33
+ const jsonObj = Object.assign(Object.assign({}, obj), {});
34
+ return jsonObj;
35
+ }
36
+ SourceDetails.getDeserializedJsonObj = getDeserializedJsonObj;
37
+ })(SourceDetails = exports.SourceDetails || (exports.SourceDetails = {}));
38
+ //# sourceMappingURL=source-details.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-details.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/source-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;AAoBH,IAAiB,aAAa,CAW7B;AAXD,WAAiB,aAAa;IAC5B,SAAgB,UAAU,CAAC,GAAkB;QAC3C,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,wBAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAkB;QACvD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,oCAAsB,yBAIrC,CAAA;AACH,CAAC,EAXgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAW7B"}
@@ -0,0 +1,57 @@
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
+ * **Pre-General Availability: 2024-01-24**
25
+ * |*Important*|
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
+ */
38
+ export interface ToolInvocationTrace extends model.Trace {
39
+ /**
40
+ * The ID of the selected tool based on the user query.
41
+ */
42
+ "toolId"?: string;
43
+ /**
44
+ * The display name of the selected tool.
45
+ */
46
+ "toolName"?: string;
47
+ /**
48
+ * The invocation details related to the selected tool.
49
+ */
50
+ "invocationDetails"?: string;
51
+ "traceType": string;
52
+ }
53
+ export declare namespace ToolInvocationTrace {
54
+ function getJsonObj(obj: ToolInvocationTrace, isParentJsonObj?: boolean): object;
55
+ const traceType = "TOOL_INVOCATION_TRACE";
56
+ function getDeserializedJsonObj(obj: ToolInvocationTrace, isParentJsonObj?: boolean): object;
57
+ }
@@ -0,0 +1,59 @@
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.ToolInvocationTrace = void 0;
44
+ const model = __importStar(require("../model"));
45
+ var ToolInvocationTrace;
46
+ (function (ToolInvocationTrace) {
47
+ function getJsonObj(obj, isParentJsonObj) {
48
+ const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj ? obj : model.Trace.getJsonObj(obj))), {});
49
+ return jsonObj;
50
+ }
51
+ ToolInvocationTrace.getJsonObj = getJsonObj;
52
+ ToolInvocationTrace.traceType = "TOOL_INVOCATION_TRACE";
53
+ function getDeserializedJsonObj(obj, isParentJsonObj) {
54
+ const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj ? obj : model.Trace.getDeserializedJsonObj(obj))), {});
55
+ return jsonObj;
56
+ }
57
+ ToolInvocationTrace.getDeserializedJsonObj = getDeserializedJsonObj;
58
+ })(ToolInvocationTrace = exports.ToolInvocationTrace || (exports.ToolInvocationTrace = {}));
59
+ //# sourceMappingURL=tool-invocation-trace.js.map
@@ -0,0 +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;AAmClC,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"}
@@ -19,15 +19,29 @@ To learn more about the service, see the [Generative AI Agents documentation](ht
19
19
  * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
20
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
21
  */
22
+ import * as model from "../model";
22
23
  /**
23
24
  * The trace that displays the internal progression, such as reasoning and actions during an execution.
24
25
  *
25
26
  */
26
27
  export interface Trace {
28
+ /**
29
+ * Unique identifier for the event (UUID).
30
+ */
31
+ "key"?: string;
32
+ /**
33
+ * Identifier of the parent event, if applicable (UUID).
34
+ */
35
+ "parentKey"?: string;
36
+ "source"?: model.SourceDetails;
27
37
  /**
28
38
  * The date and time that the trace was created in the format of an RFC3339 datetime string.
29
39
  */
30
40
  "timeCreated"?: Date;
41
+ /**
42
+ * Timestamp for when the event ended (In RFC 3339).
43
+ */
44
+ "timeFinished"?: Date;
31
45
  "traceType": string;
32
46
  }
33
47
  export declare namespace Trace {
@@ -46,15 +46,23 @@ const common = require("oci-common");
46
46
  var Trace;
47
47
  (function (Trace) {
48
48
  function getJsonObj(obj) {
49
- const jsonObj = Object.assign(Object.assign({}, obj), {});
49
+ const jsonObj = Object.assign(Object.assign({}, obj), {
50
+ "source": obj.source ? model.SourceDetails.getJsonObj(obj.source) : undefined
51
+ });
50
52
  if (obj && "traceType" in obj && obj.traceType) {
51
53
  switch (obj.traceType) {
52
54
  case "ERROR_TRACE":
53
55
  return model.ErrorTrace.getJsonObj(jsonObj, true);
54
56
  case "RETRIEVAL_TRACE":
55
57
  return model.RetrievalTrace.getJsonObj(jsonObj, true);
58
+ case "EXECUTION_TRACE":
59
+ return model.ExecutionTrace.getJsonObj(jsonObj, true);
56
60
  case "GENERATION_TRACE":
57
61
  return model.GenerationTrace.getJsonObj(jsonObj, true);
62
+ case "TOOL_INVOCATION_TRACE":
63
+ return model.ToolInvocationTrace.getJsonObj(jsonObj, true);
64
+ case "PLANNING_TRACE":
65
+ return model.PlanningTrace.getJsonObj(jsonObj, true);
58
66
  default:
59
67
  if (common.LOG.logger)
60
68
  common.LOG.logger.info(`Unknown value for: ${obj.traceType}`);
@@ -64,15 +72,23 @@ var Trace;
64
72
  }
65
73
  Trace.getJsonObj = getJsonObj;
66
74
  function getDeserializedJsonObj(obj) {
67
- const jsonObj = Object.assign(Object.assign({}, obj), {});
75
+ const jsonObj = Object.assign(Object.assign({}, obj), {
76
+ "source": obj.source ? model.SourceDetails.getDeserializedJsonObj(obj.source) : undefined
77
+ });
68
78
  if (obj && "traceType" in obj && obj.traceType) {
69
79
  switch (obj.traceType) {
70
80
  case "ERROR_TRACE":
71
81
  return model.ErrorTrace.getDeserializedJsonObj(jsonObj, true);
72
82
  case "RETRIEVAL_TRACE":
73
83
  return model.RetrievalTrace.getDeserializedJsonObj(jsonObj, true);
84
+ case "EXECUTION_TRACE":
85
+ return model.ExecutionTrace.getDeserializedJsonObj(jsonObj, true);
74
86
  case "GENERATION_TRACE":
75
87
  return model.GenerationTrace.getDeserializedJsonObj(jsonObj, true);
88
+ case "TOOL_INVOCATION_TRACE":
89
+ return model.ToolInvocationTrace.getDeserializedJsonObj(jsonObj, true);
90
+ case "PLANNING_TRACE":
91
+ return model.PlanningTrace.getDeserializedJsonObj(jsonObj, true);
76
92
  default:
77
93
  if (common.LOG.logger)
78
94
  common.LOG.logger.info(`Unknown value for: ${obj.traceType}`);
@@ -1 +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,K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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;IA1Ce,4BAAsB,yBA0CrC,CAAA;AACH,CAAC,EA3EgB,KAAK,GAAL,aAAK,KAAL,aAAK,QA2ErB"}
@@ -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
+ /**
23
+ * Usage details.
24
+ */
25
+ export interface UsageDetails {
26
+ /**
27
+ * Number of input tokens. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
28
+ */
29
+ "inputTokenCount"?: number;
30
+ /**
31
+ * Number of output tokens. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
32
+ */
33
+ "outputTokenCount"?: number;
34
+ /**
35
+ * Number of input characters. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
36
+ */
37
+ "inputCharCount"?: number;
38
+ /**
39
+ * Number of output characters. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
40
+ */
41
+ "outputCharCount"?: number;
42
+ }
43
+ export declare namespace UsageDetails {
44
+ function getJsonObj(obj: UsageDetails): object;
45
+ function getDeserializedJsonObj(obj: UsageDetails): object;
46
+ }
@@ -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.UsageDetails = void 0;
25
+ var UsageDetails;
26
+ (function (UsageDetails) {
27
+ function getJsonObj(obj) {
28
+ const jsonObj = Object.assign(Object.assign({}, obj), {});
29
+ return jsonObj;
30
+ }
31
+ UsageDetails.getJsonObj = getJsonObj;
32
+ function getDeserializedJsonObj(obj) {
33
+ const jsonObj = Object.assign(Object.assign({}, obj), {});
34
+ return jsonObj;
35
+ }
36
+ UsageDetails.getDeserializedJsonObj = getDeserializedJsonObj;
37
+ })(UsageDetails = exports.UsageDetails || (exports.UsageDetails = {}));
38
+ //# sourceMappingURL=usage-details.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage-details.js","sourceRoot":"","sources":["../../../../../lib/generativeaiagentruntime/lib/model/usage-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;AA2BH,IAAiB,YAAY,CAW5B;AAXD,WAAiB,YAAY;IAC3B,SAAgB,UAAU,CAAC,GAAiB;QAC1C,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,uBAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAiB;QACtD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,mCAAsB,yBAIrC,CAAA;AACH,CAAC,EAXgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAW5B"}