@agentica/core 0.24.0 → 0.25.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 (167) hide show
  1. package/lib/Agentica.d.ts +2 -2
  2. package/lib/Agentica.js +4 -4
  3. package/lib/Agentica.js.map +1 -1
  4. package/lib/MicroAgentica.d.ts +2 -2
  5. package/lib/MicroAgentica.js +4 -4
  6. package/lib/MicroAgentica.js.map +1 -1
  7. package/lib/context/AgenticaContext.d.ts +2 -2
  8. package/lib/context/MicroAgenticaContext.d.ts +2 -2
  9. package/lib/context/index.d.ts +5 -0
  10. package/lib/{structures/mcp → context}/index.js +5 -1
  11. package/lib/context/index.js.map +1 -0
  12. package/lib/events/AgenticaAssistantMessageEvent.d.ts +9 -0
  13. package/lib/{histories/AgenticaUserInputHistory.js → events/AgenticaAssistantMessageEvent.js} +1 -1
  14. package/lib/events/AgenticaAssistantMessageEvent.js.map +1 -0
  15. package/lib/events/AgenticaEvent.d.ts +9 -9
  16. package/lib/events/AgenticaUserMessageEvent.d.ts +9 -0
  17. package/lib/events/{AgenticaUserInputEvent.js → AgenticaUserMessageEvent.js} +1 -1
  18. package/lib/events/AgenticaUserMessageEvent.js.map +1 -0
  19. package/lib/events/MicroAgenticaEvent.d.ts +6 -6
  20. package/lib/events/index.d.ts +14 -0
  21. package/lib/events/index.js +31 -0
  22. package/lib/events/index.js.map +1 -0
  23. package/lib/factory/events.d.ts +8 -8
  24. package/lib/factory/events.js +23 -38
  25. package/lib/factory/events.js.map +1 -1
  26. package/lib/factory/histories.d.ts +1 -36
  27. package/lib/factory/histories.js +77 -24
  28. package/lib/factory/histories.js.map +1 -1
  29. package/lib/functional/assertHttpController.js +6 -6
  30. package/lib/functional/assertHttpLlmApplication.js +6 -6
  31. package/lib/functional/assertMcpController.d.ts +1 -2
  32. package/lib/functional/assertMcpController.js +6 -6
  33. package/lib/functional/assertMcpController.js.map +1 -1
  34. package/lib/functional/index.d.ts +6 -0
  35. package/lib/functional/index.js +23 -0
  36. package/lib/functional/index.js.map +1 -0
  37. package/lib/functional/validateHttpController.js +5 -5
  38. package/lib/functional/validateHttpLlmApplication.js +5 -5
  39. package/lib/functional/validateMcpController.d.ts +1 -2
  40. package/lib/functional/validateMcpController.js +11 -11
  41. package/lib/functional/validateMcpController.js.map +1 -1
  42. package/lib/histories/{AgenticaTextHistory.d.ts → AgenticaAssistantMessageHistory.d.ts} +1 -2
  43. package/lib/histories/AgenticaAssistantMessageHistory.js +3 -0
  44. package/lib/histories/AgenticaAssistantMessageHistory.js.map +1 -0
  45. package/lib/histories/AgenticaHistory.d.ts +7 -7
  46. package/lib/histories/AgenticaUserMessageHistory.d.ts +6 -0
  47. package/lib/{events/AgenticaTextEvent.js → histories/AgenticaUserMessageHistory.js} +1 -1
  48. package/lib/histories/AgenticaUserMessageHistory.js.map +1 -0
  49. package/lib/histories/MicroAgenticaHistory.d.ts +5 -4
  50. package/lib/histories/contents/AgenticaUserMessageAudioContent.d.ts +19 -0
  51. package/lib/histories/contents/AgenticaUserMessageAudioContent.js +3 -0
  52. package/lib/histories/contents/AgenticaUserMessageAudioContent.js.map +1 -0
  53. package/lib/histories/contents/AgenticaUserMessageContent.d.ts +14 -0
  54. package/lib/histories/{AgenticaTextHistory.js → contents/AgenticaUserMessageContent.js} +1 -1
  55. package/lib/histories/contents/AgenticaUserMessageContent.js.map +1 -0
  56. package/lib/histories/contents/AgenticaUserMessageContentBase.d.ts +6 -0
  57. package/lib/histories/contents/AgenticaUserMessageContentBase.js +3 -0
  58. package/lib/histories/contents/AgenticaUserMessageContentBase.js.map +1 -0
  59. package/lib/histories/contents/AgenticaUserMessageFileContent.d.ts +26 -0
  60. package/lib/histories/contents/AgenticaUserMessageFileContent.js +3 -0
  61. package/lib/histories/contents/AgenticaUserMessageFileContent.js.map +1 -0
  62. package/lib/histories/contents/AgenticaUserMessageImageContent.d.ts +20 -0
  63. package/lib/histories/contents/AgenticaUserMessageImageContent.js +3 -0
  64. package/lib/histories/contents/AgenticaUserMessageImageContent.js.map +1 -0
  65. package/lib/histories/contents/AgenticaUserMessageTextContent.d.ts +14 -0
  66. package/lib/histories/contents/AgenticaUserMessageTextContent.js +3 -0
  67. package/lib/histories/contents/AgenticaUserMessageTextContent.js.map +1 -0
  68. package/lib/histories/contents/index.d.ts +5 -0
  69. package/lib/histories/contents/index.js +22 -0
  70. package/lib/histories/contents/index.js.map +1 -0
  71. package/lib/histories/index.d.ts +9 -0
  72. package/lib/histories/index.js +26 -0
  73. package/lib/histories/index.js.map +1 -0
  74. package/lib/index.d.ts +6 -45
  75. package/lib/index.js +6 -46
  76. package/lib/index.js.map +1 -1
  77. package/lib/index.mjs +148 -133
  78. package/lib/index.mjs.map +1 -1
  79. package/lib/json/IAgenticaEventJson.d.ts +29 -23
  80. package/lib/json/IAgenticaHistoryJson.d.ts +24 -19
  81. package/lib/json/IMicroAgenticaEventJson.d.ts +1 -1
  82. package/lib/json/IMicroAgenticaHistoryJson.d.ts +1 -1
  83. package/lib/json/index.d.ts +7 -0
  84. package/lib/json/index.js +24 -0
  85. package/lib/json/index.js.map +1 -0
  86. package/lib/orchestrate/call.js +4 -4
  87. package/lib/orchestrate/call.js.map +1 -1
  88. package/lib/orchestrate/cancel.js +1 -1
  89. package/lib/orchestrate/cancel.js.map +1 -1
  90. package/lib/orchestrate/initialize.js +4 -4
  91. package/lib/orchestrate/initialize.js.map +1 -1
  92. package/lib/orchestrate/select.js +3 -3
  93. package/lib/orchestrate/select.js.map +1 -1
  94. package/lib/structures/IAgenticaController.d.ts +1 -2
  95. package/lib/structures/index.d.ts +10 -0
  96. package/lib/structures/index.js +27 -0
  97. package/lib/structures/index.js.map +1 -0
  98. package/lib/transformers/transformEvent.d.ts +1 -0
  99. package/lib/transformers/{AgenticaEventTransformer.js → transformEvent.js} +74 -31
  100. package/lib/transformers/transformEvent.js.map +1 -0
  101. package/lib/transformers/transformHistory.d.ts +1 -0
  102. package/lib/transformers/{AgenticaHistoryTransformer.js → transformHistory.js} +24 -23
  103. package/lib/transformers/transformHistory.js.map +1 -0
  104. package/lib/utils/ChatGptCompletionMessageUtil.js +2 -2
  105. package/package.json +5 -6
  106. package/src/Agentica.ts +10 -9
  107. package/src/MicroAgentica.ts +12 -9
  108. package/src/context/AgenticaContext.ts +2 -2
  109. package/src/context/MicroAgenticaContext.ts +2 -2
  110. package/src/context/index.ts +5 -0
  111. package/src/events/AgenticaAssistantMessageEvent.ts +12 -0
  112. package/src/events/AgenticaEvent.ts +15 -15
  113. package/src/events/AgenticaUserMessageEvent.ts +12 -0
  114. package/src/events/MicroAgenticaEvent.ts +9 -9
  115. package/src/events/index.ts +14 -0
  116. package/src/factory/events.ts +29 -34
  117. package/src/factory/histories.ts +81 -32
  118. package/src/functional/assertMcpController.ts +4 -2
  119. package/src/functional/index.ts +7 -0
  120. package/src/functional/validateMcpController.ts +4 -2
  121. package/src/histories/{AgenticaTextHistory.ts → AgenticaAssistantMessageHistory.ts} +4 -2
  122. package/src/histories/AgenticaHistory.ts +8 -8
  123. package/src/histories/AgenticaUserMessageHistory.ts +11 -0
  124. package/src/histories/MicroAgenticaHistory.ts +6 -5
  125. package/src/histories/contents/AgenticaUserMessageAudioContent.ts +21 -0
  126. package/src/histories/contents/AgenticaUserMessageContent.ts +19 -0
  127. package/src/histories/contents/AgenticaUserMessageContentBase.ts +6 -0
  128. package/src/histories/contents/AgenticaUserMessageFileContent.ts +27 -0
  129. package/src/histories/contents/AgenticaUserMessageImageContent.ts +23 -0
  130. package/src/histories/contents/AgenticaUserMessageTextContent.ts +15 -0
  131. package/src/histories/contents/index.ts +5 -0
  132. package/src/histories/index.ts +9 -0
  133. package/src/index.ts +6 -54
  134. package/src/json/IAgenticaEventJson.ts +36 -28
  135. package/src/json/IAgenticaHistoryJson.ts +28 -22
  136. package/src/json/IMicroAgenticaEventJson.ts +2 -1
  137. package/src/json/IMicroAgenticaHistoryJson.ts +2 -1
  138. package/src/json/index.ts +7 -0
  139. package/src/orchestrate/call.ts +8 -8
  140. package/src/orchestrate/cancel.ts +2 -2
  141. package/src/orchestrate/initialize.ts +5 -5
  142. package/src/orchestrate/select.ts +5 -5
  143. package/src/structures/IAgenticaController.ts +4 -2
  144. package/src/structures/index.ts +10 -0
  145. package/src/transformers/{AgenticaEventTransformer.ts → transformEvent.ts} +94 -42
  146. package/src/transformers/{AgenticaHistoryTransformer.ts → transformHistory.ts} +30 -26
  147. package/lib/events/AgenticaTextEvent.d.ts +0 -10
  148. package/lib/events/AgenticaTextEvent.js.map +0 -1
  149. package/lib/events/AgenticaUserInputEvent.d.ts +0 -10
  150. package/lib/events/AgenticaUserInputEvent.js.map +0 -1
  151. package/lib/histories/AgenticaTextHistory.js.map +0 -1
  152. package/lib/histories/AgenticaUserInputHistory.d.ts +0 -86
  153. package/lib/histories/AgenticaUserInputHistory.js.map +0 -1
  154. package/lib/structures/mcp/IMcpLlmTransportProps.d.ts +0 -11
  155. package/lib/structures/mcp/IMcpLlmTransportProps.js +0 -3
  156. package/lib/structures/mcp/IMcpLlmTransportProps.js.map +0 -1
  157. package/lib/structures/mcp/index.d.ts +0 -1
  158. package/lib/structures/mcp/index.js.map +0 -1
  159. package/lib/transformers/AgenticaEventTransformer.d.ts +0 -63
  160. package/lib/transformers/AgenticaEventTransformer.js.map +0 -1
  161. package/lib/transformers/AgenticaHistoryTransformer.d.ts +0 -41
  162. package/lib/transformers/AgenticaHistoryTransformer.js.map +0 -1
  163. package/src/events/AgenticaTextEvent.ts +0 -12
  164. package/src/events/AgenticaUserInputEvent.ts +0 -12
  165. package/src/histories/AgenticaUserInputHistory.ts +0 -94
  166. package/src/structures/mcp/IMcpLlmTransportProps.ts +0 -13
  167. package/src/structures/mcp/index.ts +0 -1
@@ -1,24 +1,34 @@
1
1
  import type { ILlmSchema } from "@samchon/openapi";
2
2
 
3
3
  import type { AgenticaOperation } from "../context/AgenticaOperation";
4
+ import type { AgenticaUserMessageHistory } from "../histories";
5
+ import type { AgenticaAssistantMessageHistory } from "../histories/AgenticaAssistantMessageHistory";
4
6
  import type { AgenticaCancelHistory } from "../histories/AgenticaCancelHistory";
5
7
  import type { AgenticaDescribeHistory } from "../histories/AgenticaDescribeHistory";
6
8
  import type { AgenticaExecuteHistory } from "../histories/AgenticaExecuteHistory";
7
9
  import type { AgenticaHistory } from "../histories/AgenticaHistory";
8
10
  import type { AgenticaSelectHistory } from "../histories/AgenticaSelectHistory";
9
- import type { AgenticaTextHistory } from "../histories/AgenticaTextHistory";
10
11
  import type { IAgenticaHistoryJson } from "../json/IAgenticaHistoryJson";
11
12
 
12
- import { createCancelHistory, createDescribeHistory, createExecuteHistory, createSelectHistory, createTextHistory } from "../factory/histories";
13
+ import { createAssistantMessageHistory, createCancelHistory, createDescribeHistory, createExecuteHistory, createSelectHistory, createUserMessageHistory } from "../factory/histories";
13
14
  import { createOperationSelection } from "../factory/operations";
14
15
 
15
- function transform<Model extends ILlmSchema.Model>(props: {
16
+ /**
17
+ * @internal
18
+ */
19
+ export function transformHistory<Model extends ILlmSchema.Model>(props: {
16
20
  operations: Map<string, Map<string, AgenticaOperation<Model>>>;
17
21
  history: IAgenticaHistoryJson;
18
22
  }): AgenticaHistory<Model> {
19
- // TEXT
20
- if (props.history.type === "text") {
21
- return transformText({
23
+ // USER
24
+ if (props.history.type === "userMessage") {
25
+ return transformUserMessage({
26
+ history: props.history,
27
+ });
28
+ }
29
+ // ASSISTANT
30
+ else if (props.history.type === "assistantMessage") {
31
+ return transformAssistantMessage({
22
32
  history: props.history,
23
33
  });
24
34
  }
@@ -42,19 +52,22 @@ function transform<Model extends ILlmSchema.Model>(props: {
42
52
  history: props.history,
43
53
  });
44
54
  }
45
- else if (props.history.type === "describe") {
46
- return transformDescribe({
47
- operations: props.operations,
48
- history: props.history,
49
- });
50
- }
51
- throw new Error("Invalid prompt type.");
55
+ return transformDescribe({
56
+ operations: props.operations,
57
+ history: props.history,
58
+ });
52
59
  }
53
60
 
54
- function transformText(props: {
55
- history: IAgenticaHistoryJson.IText;
56
- }): AgenticaTextHistory {
57
- return createTextHistory(props.history);
61
+ function transformAssistantMessage(props: {
62
+ history: IAgenticaHistoryJson.IAssistantMessage;
63
+ }): AgenticaAssistantMessageHistory {
64
+ return createAssistantMessageHistory(props.history);
65
+ }
66
+
67
+ function transformUserMessage(props: {
68
+ history: IAgenticaHistoryJson.IUserMessage;
69
+ }): AgenticaUserMessageHistory {
70
+ return createUserMessageHistory(props.history);
58
71
  }
59
72
 
60
73
  function transformSelect<Model extends ILlmSchema.Model>(props: {
@@ -146,12 +159,3 @@ function findOperation<Model extends ILlmSchema.Model>(props: {
146
159
  }
147
160
  return found;
148
161
  }
149
-
150
- export const AgenticaHistoryTransformer = {
151
- transform,
152
- transformText,
153
- transformSelect,
154
- transformCancel,
155
- transformExecute,
156
- transformDescribe,
157
- };
@@ -1,10 +0,0 @@
1
- import type { AgenticaTextHistory } from "../histories/AgenticaTextHistory";
2
- import type { IAgenticaEventJson } from "../json/IAgenticaEventJson";
3
- import type { AgenticaEventBase } from "./AgenticaEventBase";
4
- export interface AgenticaTextEvent extends AgenticaEventBase<"text"> {
5
- role: "assistant";
6
- stream: AsyncGenerator<string, undefined, undefined>;
7
- join: () => Promise<string>;
8
- toJSON: () => IAgenticaEventJson.IText;
9
- toHistory: () => AgenticaTextHistory;
10
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"AgenticaTextEvent.js","sourceRoot":"","sources":["../../src/events/AgenticaTextEvent.ts"],"names":[],"mappings":""}
@@ -1,10 +0,0 @@
1
- import type { AgenticaUserInputHistory } from "../histories/AgenticaUserInputHistory";
2
- import type { IAgenticaEventJson } from "../json/IAgenticaEventJson";
3
- import type { AgenticaEventBase } from "./AgenticaEventBase";
4
- export interface AgenticaUserInputEvent extends AgenticaEventBase<"user_input"> {
5
- role: "user";
6
- contents: Array<AgenticaUserInputHistory.Contents>;
7
- join: () => Promise<Array<AgenticaUserInputHistory.Contents>>;
8
- toJSON: () => IAgenticaEventJson.IUserInput;
9
- toHistory: () => AgenticaUserInputHistory;
10
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"AgenticaUserInputEvent.js","sourceRoot":"","sources":["../../src/events/AgenticaUserInputEvent.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AgenticaTextHistory.js","sourceRoot":"","sources":["../../src/histories/AgenticaTextHistory.ts"],"names":[],"mappings":""}
@@ -1,86 +0,0 @@
1
- import type typia from "typia";
2
- import type { IAgenticaHistoryJson } from "../json/IAgenticaHistoryJson";
3
- import type { AgenticaHistoryBase } from "./AgenticaHistoryBase";
4
- export interface AgenticaUserInputHistory extends AgenticaHistoryBase<"user_input", IAgenticaHistoryJson.IUserInput> {
5
- role: "user";
6
- contents: Array<AgenticaUserInputHistory.Contents>;
7
- }
8
- export declare namespace AgenticaUserInputHistory {
9
- type Contents = Contents.File | Contents.Image | Contents.InputAudio | Contents.Text;
10
- namespace Contents {
11
- interface ContentsBase<Type extends string> {
12
- /**
13
- * The type of the content part.
14
- */
15
- type: Type;
16
- }
17
- /**
18
- * Learn about
19
- * [text inputs](https://platform.openai.com/docs/guides/text-generation).
20
- */
21
- export interface Text extends ContentsBase<"text"> {
22
- /**
23
- * The text content.
24
- */
25
- text: string;
26
- }
27
- /**
28
- * Learn about [image inputs](https://platform.openai.com/docs/guides/vision).
29
- */
30
- export interface Image extends ContentsBase<"image_url"> {
31
- image_url: {
32
- /**
33
- * Either a URL of the image or the base64 encoded image data.
34
- */
35
- url: string & typia.tags.Format<"url">;
36
- /**
37
- * Specifies the detail level of the image. Learn more in the
38
- * [Vision guide](https://platform.openai.com/docs/guides/vision#low-or-high-fidelity-image-understanding).
39
- */
40
- detail?: "auto" | "high" | "low";
41
- };
42
- }
43
- /**
44
- * Learn about [audio inputs](https://platform.openai.com/docs/guides/audio).
45
- *
46
- * Note: we not recommend it because audio input data only support base64 so it's too big data.
47
- */
48
- export interface InputAudio extends ContentsBase<"input_audio"> {
49
- input_audio: {
50
- /**
51
- * Base64 encoded audio data.
52
- */
53
- data: string;
54
- /**
55
- * The format of the encoded audio data. Currently supports "wav" and "mp3".
56
- */
57
- format: "wav" | "mp3";
58
- };
59
- }
60
- /**
61
- * Learn about [file inputs](https://platform.openai.com/docs/guides/text) for text
62
- * generation.
63
- *
64
- * Note: we recommend use `file_id` instead of `file_data` because it's too big data.
65
- */
66
- export interface File extends ContentsBase<"file"> {
67
- file: {
68
- /**
69
- * The ID of an uploaded file to use as input.
70
- */
71
- file_id: string;
72
- } | {
73
- /**
74
- * The base64 encoded file data, used when passing the file to the model as a
75
- * string.
76
- */
77
- file_data: string;
78
- /**
79
- * The name of the file, used when passing the file to the model as a string.
80
- */
81
- filename: string;
82
- };
83
- }
84
- export {};
85
- }
86
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"AgenticaUserInputHistory.js","sourceRoot":"","sources":["../../src/histories/AgenticaUserInputHistory.ts"],"names":[],"mappings":""}
@@ -1,11 +0,0 @@
1
- import type { SSEClientTransportOptions } from "@modelcontextprotocol/sdk/client/sse.d.ts";
2
- import type { StdioServerParameters } from "@modelcontextprotocol/sdk/client/stdio.d.ts";
3
- export type IMcpLlmTransportProps = IMcpLlmTransportPropsHttp | IMcpLlmTransportPropsStdio;
4
- export interface IMcpLlmTransportPropsHttp extends IMcpLlmTransportPropsBase<"sse">, SSEClientTransportOptions {
5
- url: URL;
6
- }
7
- export interface IMcpLlmTransportPropsStdio extends IMcpLlmTransportPropsBase<"stdio">, StdioServerParameters {
8
- }
9
- export interface IMcpLlmTransportPropsBase<T extends string> {
10
- type: T;
11
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IMcpLlmTransportProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IMcpLlmTransportProps.js","sourceRoot":"","sources":["../../../src/structures/mcp/IMcpLlmTransportProps.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export * from "./IMcpLlmTransportProps";
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/structures/mcp/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
@@ -1,63 +0,0 @@
1
- import type { ILlmSchema } from "@samchon/openapi";
2
- import type { AgenticaOperation } from "../context/AgenticaOperation";
3
- import type { AgenticaCallEvent } from "../events/AgenticaCallEvent";
4
- import type { AgenticaCancelEvent } from "../events/AgenticaCancelEvent";
5
- import type { AgenticaDescribeEvent } from "../events/AgenticaDescribeEvent";
6
- import type { AgenticaEvent } from "../events/AgenticaEvent";
7
- import type { AgenticaExecuteEvent } from "../events/AgenticaExecuteEvent";
8
- import type { AgenticaInitializeEvent } from "../events/AgenticaInitializeEvent";
9
- import type { AgenticaRequestEvent } from "../events/AgenticaRequestEvent";
10
- import type { AgenticaSelectEvent } from "../events/AgenticaSelectEvent";
11
- import type { AgenticaTextEvent } from "../events/AgenticaTextEvent";
12
- import type { IAgenticaEventJson } from "../json/IAgenticaEventJson";
13
- declare function findOperation<Model extends ILlmSchema.Model>(props: {
14
- operations: Map<string, Map<string, AgenticaOperation<Model>>>;
15
- input: {
16
- controller: string;
17
- function: string;
18
- };
19
- }): AgenticaOperation<Model>;
20
- declare function transform<Model extends ILlmSchema.Model>(props: {
21
- operations: Map<string, Map<string, AgenticaOperation<Model>>>;
22
- event: IAgenticaEventJson;
23
- }): AgenticaEvent<Model>;
24
- declare function transformCall<Model extends ILlmSchema.Model>(props: {
25
- operations: Map<string, Map<string, AgenticaOperation<Model>>>;
26
- event: IAgenticaEventJson.ICall;
27
- }): AgenticaCallEvent<Model>;
28
- export declare function transformCancel<Model extends ILlmSchema.Model>(props: {
29
- operations: Map<string, Map<string, AgenticaOperation<Model>>>;
30
- event: IAgenticaEventJson.ICancel;
31
- }): AgenticaCancelEvent<Model>;
32
- declare function transformDescribe<Model extends ILlmSchema.Model>(props: {
33
- operations: Map<string, Map<string, AgenticaOperation<Model>>>;
34
- event: IAgenticaEventJson.IDescribe;
35
- }): AgenticaDescribeEvent<Model>;
36
- declare function transformExecute<Model extends ILlmSchema.Model>(props: {
37
- operations: Map<string, Map<string, AgenticaOperation<Model>>>;
38
- event: IAgenticaEventJson.IExecute;
39
- }): AgenticaExecuteEvent<Model>;
40
- declare function transformInitialize(): AgenticaInitializeEvent;
41
- declare function transformRequest(props: {
42
- event: IAgenticaEventJson.IRequest;
43
- }): AgenticaRequestEvent;
44
- declare function transformSelect<Model extends ILlmSchema.Model>(props: {
45
- operations: Map<string, Map<string, AgenticaOperation<Model>>>;
46
- event: IAgenticaEventJson.ISelect;
47
- }): AgenticaSelectEvent<Model>;
48
- declare function transformText(props: {
49
- event: IAgenticaEventJson.IText;
50
- }): AgenticaTextEvent;
51
- export declare const AgenticaEventTransformer: {
52
- transform: typeof transform;
53
- transformCall: typeof transformCall;
54
- transformCancel: typeof transformCancel;
55
- transformDescribe: typeof transformDescribe;
56
- transformExecute: typeof transformExecute;
57
- transformInitialize: typeof transformInitialize;
58
- transformRequest: typeof transformRequest;
59
- transformSelect: typeof transformSelect;
60
- transformText: typeof transformText;
61
- findOperation: typeof findOperation;
62
- };
63
- export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"AgenticaEventTransformer.js","sourceRoot":"","sources":["../../src/transformers/AgenticaEventTransformer.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoGA,0CAaC;AAnGD,8CAA+L;AAC/L,sDAAiE;AACjE,oDAAuD;AAEvD,SAAS,aAAa,CAAiC,KAMtD;;IACC,MAAM,KAAK,GAAyC,MAAA,KAAK,CAAC,UAAU;SACjE,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,0CAC1B,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC9B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CACb,oCAAoC,KAAK,CAAC,KAAK,CAAC,UAAU,eAAe,KAAK,CAAC,KA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AEtB;IACC,OAAO,IAAA,wBAAe,EAAC;QACrB,MAAM,EAAE,IAAA,6BAAgB,EAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC;QAC1C,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI;QAChB,GAAG,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI;QAC3B,IAAI,EAAE,GAAS,EAAE,gDAAC,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAA,GAAA;KACnC,CAAC,CAAC;AACL,CAAC;AAEY,QAAA,wBAAwB,GAAG;IACtC,SAAS;IACT,aAAa;IACb,eAAe;IACf,iBAAiB;IACjB,gBAAgB;IAChB,mBAAmB;IACnB,gBAAgB;IAChB,eAAe;IACf,aAAa;IACb,aAAa;CACd,CAAC"}
@@ -1,41 +0,0 @@
1
- import type { ILlmSchema } from "@samchon/openapi";
2
- import type { AgenticaOperation } from "../context/AgenticaOperation";
3
- import type { AgenticaCancelHistory } from "../histories/AgenticaCancelHistory";
4
- import type { AgenticaDescribeHistory } from "../histories/AgenticaDescribeHistory";
5
- import type { AgenticaExecuteHistory } from "../histories/AgenticaExecuteHistory";
6
- import type { AgenticaHistory } from "../histories/AgenticaHistory";
7
- import type { AgenticaSelectHistory } from "../histories/AgenticaSelectHistory";
8
- import type { AgenticaTextHistory } from "../histories/AgenticaTextHistory";
9
- import type { IAgenticaHistoryJson } from "../json/IAgenticaHistoryJson";
10
- declare function transform<Model extends ILlmSchema.Model>(props: {
11
- operations: Map<string, Map<string, AgenticaOperation<Model>>>;
12
- history: IAgenticaHistoryJson;
13
- }): AgenticaHistory<Model>;
14
- declare function transformText(props: {
15
- history: IAgenticaHistoryJson.IText;
16
- }): AgenticaTextHistory;
17
- declare function transformSelect<Model extends ILlmSchema.Model>(props: {
18
- operations: Map<string, Map<string, AgenticaOperation<Model>>>;
19
- history: IAgenticaHistoryJson.ISelect;
20
- }): AgenticaSelectHistory<Model>;
21
- declare function transformCancel<Model extends ILlmSchema.Model>(props: {
22
- operations: Map<string, Map<string, AgenticaOperation<Model>>>;
23
- history: IAgenticaHistoryJson.ICancel;
24
- }): AgenticaCancelHistory<Model>;
25
- declare function transformExecute<Model extends ILlmSchema.Model>(props: {
26
- operations: Map<string, Map<string, AgenticaOperation<Model>>>;
27
- history: IAgenticaHistoryJson.IExecute;
28
- }): AgenticaExecuteHistory<Model>;
29
- declare function transformDescribe<Model extends ILlmSchema.Model>(props: {
30
- operations: Map<string, Map<string, AgenticaOperation<Model>>>;
31
- history: IAgenticaHistoryJson.IDescribe;
32
- }): AgenticaDescribeHistory<Model>;
33
- export declare const AgenticaHistoryTransformer: {
34
- transform: typeof transform;
35
- transformText: typeof transformText;
36
- transformSelect: typeof transformSelect;
37
- transformCancel: typeof transformCancel;
38
- transformExecute: typeof transformExecute;
39
- transformDescribe: typeof transformDescribe;
40
- };
41
- export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"AgenticaHistoryTransformer.js","sourceRoot":"","sources":["../../src/transformers/AgenticaHistoryTransformer.ts"],"names":[],"mappings":";;;AAWA,oDAAgJ;AAChJ,sDAAiE;AAEjE,SAAS,SAAS,CAAiC,KAGlD;IACC,OAAO;IACP,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;QAClC,OAAO,aAAa,CAAC;YACnB,OAAO,EAAE,KAAK,CAAC,OAAO;SACvB,CAAC,CAAC;IACL,CAAC;IACD,kBAAkB;SACb,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QACzC,OAAO,eAAe,CAAC;YACrB,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,OAAO,EAAE,KAAK,CAAC,OAAO;SACvB,CAAC,CAAC;IACL,CAAC;SACI,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QACzC,OAAO,eAAe,CAAC;YACrB,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,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K,CAAC,UAAU,eAAe,KAAK,CAAC,KAAK,CAAC,QAAQ,GAAG,CACjG,CAAC;IACJ,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAEY,QAAA,0BAA0B,GAAG;IACxC,SAAS;IACT,aAAa;IACb,eAAe;IACf,eAAe;IACf,gBAAgB;IAChB,iBAAiB;CAClB,CAAC"}
@@ -1,12 +0,0 @@
1
- import type { AgenticaTextHistory } from "../histories/AgenticaTextHistory";
2
- import type { IAgenticaEventJson } from "../json/IAgenticaEventJson";
3
-
4
- import type { AgenticaEventBase } from "./AgenticaEventBase";
5
-
6
- export interface AgenticaTextEvent extends AgenticaEventBase<"text"> {
7
- role: "assistant";
8
- stream: AsyncGenerator<string, undefined, undefined>;
9
- join: () => Promise<string>;
10
- toJSON: () => IAgenticaEventJson.IText;
11
- toHistory: () => AgenticaTextHistory;
12
- }
@@ -1,12 +0,0 @@
1
- import type { AgenticaUserInputHistory } from "../histories/AgenticaUserInputHistory";
2
- import type { IAgenticaEventJson } from "../json/IAgenticaEventJson";
3
-
4
- import type { AgenticaEventBase } from "./AgenticaEventBase";
5
-
6
- export interface AgenticaUserInputEvent extends AgenticaEventBase<"user_input"> {
7
- role: "user";
8
- contents: Array<AgenticaUserInputHistory.Contents>;
9
- join: () => Promise<Array<AgenticaUserInputHistory.Contents>>;
10
- toJSON: () => IAgenticaEventJson.IUserInput;
11
- toHistory: () => AgenticaUserInputHistory;
12
- }
@@ -1,94 +0,0 @@
1
- import type typia from "typia";
2
-
3
- import type { IAgenticaHistoryJson } from "../json/IAgenticaHistoryJson";
4
-
5
- import type { AgenticaHistoryBase } from "./AgenticaHistoryBase";
6
-
7
- export interface AgenticaUserInputHistory extends AgenticaHistoryBase<"user_input", IAgenticaHistoryJson.IUserInput> {
8
- role: "user";
9
- contents: Array<AgenticaUserInputHistory.Contents>;
10
- }
11
-
12
- export namespace AgenticaUserInputHistory {
13
- export type Contents = Contents.File | Contents.Image | Contents.InputAudio | Contents.Text;
14
- export namespace Contents {
15
- interface ContentsBase<Type extends string> {
16
- /**
17
- * The type of the content part.
18
- */
19
- type: Type;
20
- }
21
- /**
22
- * Learn about
23
- * [text inputs](https://platform.openai.com/docs/guides/text-generation).
24
- */
25
- export interface Text extends ContentsBase<"text"> {
26
- /**
27
- * The text content.
28
- */
29
- text: string;
30
- }
31
-
32
- /**
33
- * Learn about [image inputs](https://platform.openai.com/docs/guides/vision).
34
- */
35
- export interface Image extends ContentsBase<"image_url"> {
36
- image_url: {
37
- /**
38
- * Either a URL of the image or the base64 encoded image data.
39
- */
40
- url: string & typia.tags.Format<"url">;
41
- /**
42
- * Specifies the detail level of the image. Learn more in the
43
- * [Vision guide](https://platform.openai.com/docs/guides/vision#low-or-high-fidelity-image-understanding).
44
- */
45
- detail?: "auto" | "high" | "low";
46
- };
47
- }
48
-
49
- /**
50
- * Learn about [audio inputs](https://platform.openai.com/docs/guides/audio).
51
- *
52
- * Note: we not recommend it because audio input data only support base64 so it's too big data.
53
- */
54
- export interface InputAudio extends ContentsBase<"input_audio"> {
55
- input_audio: {
56
- /**
57
- * Base64 encoded audio data.
58
- */
59
- data: string;
60
-
61
- /**
62
- * The format of the encoded audio data. Currently supports "wav" and "mp3".
63
- */
64
- format: "wav" | "mp3";
65
- };
66
- }
67
-
68
- /**
69
- * Learn about [file inputs](https://platform.openai.com/docs/guides/text) for text
70
- * generation.
71
- *
72
- * Note: we recommend use `file_id` instead of `file_data` because it's too big data.
73
- */
74
- export interface File extends ContentsBase<"file"> {
75
- file: {
76
- /**
77
- * The ID of an uploaded file to use as input.
78
- */
79
- file_id: string;
80
- } | {
81
- /**
82
- * The base64 encoded file data, used when passing the file to the model as a
83
- * string.
84
- */
85
- file_data: string;
86
-
87
- /**
88
- * The name of the file, used when passing the file to the model as a string.
89
- */
90
- filename: string;
91
- };
92
- }
93
- }
94
- }
@@ -1,13 +0,0 @@
1
- import type { SSEClientTransportOptions } from "@modelcontextprotocol/sdk/client/sse.d.ts";
2
- import type { StdioServerParameters } from "@modelcontextprotocol/sdk/client/stdio.d.ts";
3
-
4
- export type IMcpLlmTransportProps = IMcpLlmTransportPropsHttp | IMcpLlmTransportPropsStdio;
5
-
6
- export interface IMcpLlmTransportPropsHttp extends IMcpLlmTransportPropsBase<"sse">, SSEClientTransportOptions {
7
- url: URL;
8
- }
9
- export interface IMcpLlmTransportPropsStdio extends IMcpLlmTransportPropsBase<"stdio">, StdioServerParameters {}
10
-
11
- export interface IMcpLlmTransportPropsBase<T extends string> {
12
- type: T;
13
- }
@@ -1 +0,0 @@
1
- export * from "./IMcpLlmTransportProps";