@illalabs/sdk 0.4.0-canary.56299752 → 0.4.0-canary.dba8c254

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 (94) hide show
  1. package/README.md +68 -9
  2. package/dist/src/chat/Chat.d.ts +31 -2
  3. package/dist/src/chat/Chat.d.ts.map +1 -1
  4. package/dist/src/chat/Chat.js +87 -28
  5. package/dist/src/chat/Chat.js.map +1 -1
  6. package/dist/src/context/ContextManager.js +1 -1
  7. package/dist/src/context/ContextManager.js.map +1 -1
  8. package/dist/src/interfaces/chat.interface.d.ts +52 -1
  9. package/dist/src/interfaces/chat.interface.d.ts.map +1 -1
  10. package/dist/src/interfaces/coreApiProvider.interface.d.ts +13 -1
  11. package/dist/src/interfaces/coreApiProvider.interface.d.ts.map +1 -1
  12. package/dist/src/interfaces/index.d.ts +1 -1
  13. package/dist/src/interfaces/index.d.ts.map +1 -1
  14. package/dist/src/internal.d.ts +1 -0
  15. package/dist/src/internal.d.ts.map +1 -1
  16. package/dist/src/internal.js +1 -0
  17. package/dist/src/internal.js.map +1 -1
  18. package/dist/src/prompt/Prompt.d.ts +2 -10
  19. package/dist/src/prompt/Prompt.d.ts.map +1 -1
  20. package/dist/src/prompt/Prompt.js +9 -22
  21. package/dist/src/prompt/Prompt.js.map +1 -1
  22. package/dist/src/prompt/index.d.ts +1 -1
  23. package/dist/src/prompt/index.d.ts.map +1 -1
  24. package/dist/src/prompt/types.d.ts +7 -9
  25. package/dist/src/prompt/types.d.ts.map +1 -1
  26. package/dist/src/prompt/utils/cloneToolResult.d.ts +6 -6
  27. package/dist/src/prompt/utils/cloneToolResult.d.ts.map +1 -1
  28. package/dist/src/prompt/utils/cloneToolResult.js +11 -16
  29. package/dist/src/prompt/utils/cloneToolResult.js.map +1 -1
  30. package/dist/src/prompt/utils/index.d.ts +1 -3
  31. package/dist/src/prompt/utils/index.d.ts.map +1 -1
  32. package/dist/src/prompt/utils/index.js +1 -3
  33. package/dist/src/prompt/utils/index.js.map +1 -1
  34. package/dist/src/providers/coreApiProvider/CoreApiProvider.d.ts +40 -1
  35. package/dist/src/providers/coreApiProvider/CoreApiProvider.d.ts.map +1 -1
  36. package/dist/src/providers/coreApiProvider/CoreApiProvider.js +124 -2
  37. package/dist/src/providers/coreApiProvider/CoreApiProvider.js.map +1 -1
  38. package/dist/src/providers/coreApiProvider/index.d.ts +1 -1
  39. package/dist/src/providers/coreApiProvider/index.d.ts.map +1 -1
  40. package/dist/src/providers/coreApiProvider/types.d.ts +44 -0
  41. package/dist/src/providers/coreApiProvider/types.d.ts.map +1 -1
  42. package/dist/src/sdk.d.ts +102 -28
  43. package/dist/src/sdk.d.ts.map +1 -1
  44. package/dist/src/sdk.js +90 -23
  45. package/dist/src/sdk.js.map +1 -1
  46. package/dist/src/streaming/errors/SSEParse.d.ts +15 -0
  47. package/dist/src/streaming/errors/SSEParse.d.ts.map +1 -0
  48. package/dist/src/streaming/errors/SSEParse.js +23 -0
  49. package/dist/src/streaming/errors/SSEParse.js.map +1 -0
  50. package/dist/src/streaming/errors/StreamingHttpError.d.ts +18 -0
  51. package/dist/src/streaming/errors/StreamingHttpError.d.ts.map +1 -0
  52. package/dist/src/streaming/errors/StreamingHttpError.js +27 -0
  53. package/dist/src/streaming/errors/StreamingHttpError.js.map +1 -0
  54. package/dist/src/streaming/errors/StreamingResponseBodyNull.d.ts +13 -0
  55. package/dist/src/streaming/errors/StreamingResponseBodyNull.d.ts.map +1 -0
  56. package/dist/src/streaming/errors/StreamingResponseBodyNull.js +21 -0
  57. package/dist/src/streaming/errors/StreamingResponseBodyNull.js.map +1 -0
  58. package/dist/src/streaming/errors/StreamingServerError.d.ts +23 -0
  59. package/dist/src/streaming/errors/StreamingServerError.d.ts.map +1 -0
  60. package/dist/src/streaming/errors/StreamingServerError.js +33 -0
  61. package/dist/src/streaming/errors/StreamingServerError.js.map +1 -0
  62. package/dist/src/streaming/errors/index.d.ts +5 -0
  63. package/dist/src/streaming/errors/index.d.ts.map +1 -0
  64. package/dist/src/streaming/errors/index.js +5 -0
  65. package/dist/src/streaming/errors/index.js.map +1 -0
  66. package/dist/src/streaming/index.d.ts +4 -0
  67. package/dist/src/streaming/index.d.ts.map +1 -0
  68. package/dist/src/streaming/index.js +3 -0
  69. package/dist/src/streaming/index.js.map +1 -0
  70. package/dist/src/streaming/parseSSE.d.ts +23 -0
  71. package/dist/src/streaming/parseSSE.d.ts.map +1 -0
  72. package/dist/src/streaming/parseSSE.js +152 -0
  73. package/dist/src/streaming/parseSSE.js.map +1 -0
  74. package/dist/src/streaming/types.d.ts +6 -0
  75. package/dist/src/streaming/types.d.ts.map +1 -0
  76. package/dist/src/streaming/types.js +6 -0
  77. package/dist/src/streaming/types.js.map +1 -0
  78. package/dist/src/telemetry/TelemetryClient.d.ts +140 -0
  79. package/dist/src/telemetry/TelemetryClient.d.ts.map +1 -0
  80. package/dist/src/telemetry/TelemetryClient.js +225 -0
  81. package/dist/src/telemetry/TelemetryClient.js.map +1 -0
  82. package/dist/src/telemetry/index.d.ts +2 -0
  83. package/dist/src/telemetry/index.d.ts.map +1 -0
  84. package/dist/src/telemetry/index.js +2 -0
  85. package/dist/src/telemetry/index.js.map +1 -0
  86. package/package.json +3 -5
  87. package/dist/src/prompt/utils/normalizeTextPrompt.d.ts +0 -14
  88. package/dist/src/prompt/utils/normalizeTextPrompt.d.ts.map +0 -1
  89. package/dist/src/prompt/utils/normalizeTextPrompt.js +0 -22
  90. package/dist/src/prompt/utils/normalizeTextPrompt.js.map +0 -1
  91. package/dist/src/prompt/utils/normalizeToolResult.d.ts +0 -14
  92. package/dist/src/prompt/utils/normalizeToolResult.d.ts.map +0 -1
  93. package/dist/src/prompt/utils/normalizeToolResult.js +0 -27
  94. package/dist/src/prompt/utils/normalizeToolResult.js.map +0 -1
@@ -1,7 +1,7 @@
1
- import { ToolResultSchema } from "@illalabs/interfaces";
1
+ import { ToolOutcomesSchema } from "@illalabs/interfaces";
2
2
  import { stringify } from "viem";
3
3
  import { PromptConfigurationConflict } from "./errors/index.js";
4
- import { cloneToolResult, normalizeTextPrompt, normalizeToolResult } from "./utils/index.js";
4
+ import { cloneToolOutcome } from "./utils/index.js";
5
5
  /**
6
6
  * Represents a message payload that can be sent to the Core API.
7
7
  *
@@ -34,31 +34,18 @@ export class Prompt {
34
34
  * @param role The role to assign to the message (e.g., "user", "assistant", "tool").
35
35
  * @returns A normalized snapshot containing both the prompt payload and message format.
36
36
  */
37
- getNormalizedSnapshot(role) {
37
+ getNormalizedSnapshot() {
38
38
  if (this.snapshot.kind === "text") {
39
- const normalized = normalizeTextPrompt(this.snapshot.text, role);
40
39
  return {
41
- kind: "text",
42
- prompt: normalized.prompt,
43
- message: normalized.message,
40
+ type: "text",
41
+ text: this.snapshot.text,
44
42
  };
45
43
  }
46
- const normalized = normalizeToolResult(this.snapshot.toolResult, role);
47
44
  return {
48
- kind: "tool-result",
49
- prompt: normalized.prompt,
50
- message: normalized.message,
45
+ type: "tool-result",
46
+ toolResults: this.snapshot.toolResult,
51
47
  };
52
48
  }
53
- /**
54
- * Converts the prompt into a message history entry with the specified role.
55
- *
56
- * @param role The role to assign to the message (e.g., "user", "assistant", "tool").
57
- * @returns A message object compatible with the message history format.
58
- */
59
- toMessage(role) {
60
- return this.getNormalizedSnapshot(role).message;
61
- }
62
49
  /**
63
50
  * Converts the prompt to a string representation.
64
51
  *
@@ -90,7 +77,7 @@ export class Prompt {
90
77
  text,
91
78
  };
92
79
  }
93
- const validated = ToolResultSchema.parse(toolResult);
80
+ const validated = ToolOutcomesSchema.parse(toolResult);
94
81
  return {
95
82
  kind: "tool-result",
96
83
  toolResult: validated,
@@ -111,7 +98,7 @@ export class Prompt {
111
98
  }
112
99
  return {
113
100
  kind: "tool-result",
114
- toolResult: cloneToolResult(snapshot.toolResult),
101
+ toolResult: snapshot.toolResult.map((item) => cloneToolOutcome(item)),
115
102
  };
116
103
  }
117
104
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Prompt.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,GAAG,UAAU,KAAK,SAAS,CAAC;QAE/C,IAAI,OAAO,KAAK,aAAa,EAAE,CAAC;YAC5B,MAAM,IAAI,2BAA2B,EAAE,CAAC;QAC5C,CAAC;QAED,IAAI,OAAO,EAAE,CAAC;YACV,OAAO;gBACH,IAAI,EAAE,MAAM;gBACZ,IAAI;aACP,CAAC;QACN,CAAC;QAED,MAAM,SAAS,GAAqB,kBAAkB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAEzE,OAAO;YACH,IAAI,EAAE,aAAa;YACnB,UAAU,EAAE,SAAS;SACxB,CAAC;IACN,CAAC;IAED;;;;;OAKG;IACK,MAAM,CAAC,aAAa,CAAC,QAAwB;QACjD,IAAI,QAAQ,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YAC3B,OAAO;gBACH,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ,CAAC,IAAI;aACtB,CAAC;QACN,CAAC;QAED,OAAO;YACH,IAAI,EAAE,aAAa;YACnB,UAAU,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;SACxE,CAAC;IACN,CAAC;CACJ"}
@@ -1,4 +1,4 @@
1
1
  export { Prompt } from "./Prompt.js";
2
2
  export { PromptConfigurationConflict } from "./errors/index.js";
3
- export type { PromptKind, PromptOptions, PromptSnapshot, PromptRole, NormalizedPromptSnapshot, } from "./types.js";
3
+ export type { NormalizedPromptSnapshot, PromptKind, PromptOptions, PromptRole, PromptSnapshot, } from "./types.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/prompt/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,YAAY,EACR,UAAU,EACV,aAAa,EACb,cAAc,EACd,UAAU,EACV,wBAAwB,GAC3B,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/prompt/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,YAAY,EACR,wBAAwB,EACxB,UAAU,EACV,aAAa,EACb,UAAU,EACV,cAAc,GACjB,MAAM,YAAY,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { MessageType, ToolResultType } from "@illalabs/interfaces";
1
+ import type { ToolOutcomesType } from "@illalabs/interfaces";
2
2
  /**
3
3
  * Enumerates the supported prompt payload variants.
4
4
  */
@@ -28,7 +28,7 @@ type XOR<TLeft, TRight> = (Without<TLeft, TRight> & TRight) | (Without<TRight, T
28
28
  export type PromptOptions = XOR<{
29
29
  readonly text: string;
30
30
  }, {
31
- readonly toolResult: ToolResultType;
31
+ readonly toolResult: ToolOutcomesType;
32
32
  }>;
33
33
  /**
34
34
  * Resulting payload snapshot produced by a {@link Prompt} instance.
@@ -38,20 +38,18 @@ export type PromptSnapshot = {
38
38
  readonly text: string;
39
39
  } | {
40
40
  readonly kind: "tool-result";
41
- readonly toolResult: ToolResultType;
41
+ readonly toolResult: ToolOutcomesType;
42
42
  };
43
43
  /**
44
44
  * Normalized prompt snapshot containing both the prompt payload and corresponding message format.
45
45
  * This structure is suitable for transmission to the Core API.
46
46
  */
47
47
  export type NormalizedPromptSnapshot = {
48
- readonly kind: "text";
49
- readonly prompt: string;
50
- readonly message: MessageType;
48
+ readonly type: "text";
49
+ readonly text: string;
51
50
  } | {
52
- readonly kind: "tool-result";
53
- readonly prompt: ToolResultType;
54
- readonly message: MessageType;
51
+ readonly type: "tool-result";
52
+ readonly toolResults: ToolOutcomesType;
55
53
  };
56
54
  export {};
57
55
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {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AM,MAAM,wBAAwB,GAC9B;IACI,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACzB,GACD;IACI,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,gBAAgB,CAAC;CAC1C,CAAC"}
@@ -1,12 +1,12 @@
1
- import type { ToolResultType } from "@illalabs/interfaces";
1
+ import type { IllaToolOutcomeJSON } from "@illalabs/interfaces";
2
2
  /**
3
- * Creates a deep clone of a tool result object to prevent external mutation.
3
+ * Creates a deep clone of a tool outcome object to prevent external mutation.
4
4
  *
5
5
  * This function clones all potentially complex fields (result and error) while
6
- * preserving primitive identifiers (toolCallId and toolName).
6
+ * preserving primitive identifiers (id and name).
7
7
  *
8
- * @param toolResult The tool result to clone.
9
- * @returns A deep copy of the tool result with all complex fields cloned.
8
+ * @param toolOutcome The tool outcome to clone.
9
+ * @returns A deep copy of the tool outcome with all complex fields cloned.
10
10
  */
11
- export declare function cloneToolResult(toolResult: ToolResultType): ToolResultType;
11
+ export declare function cloneToolOutcome(toolOutcome: IllaToolOutcomeJSON): IllaToolOutcomeJSON;
12
12
  //# sourceMappingURL=cloneToolResult.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cloneToolResult.d.ts","sourceRoot":"","sources":["../../../../src/prompt/utils/cloneToolResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAI3D;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,cAAc,GAAG,cAAc,CAiB1E"}
1
+ {"version":3,"file":"cloneToolResult.d.ts","sourceRoot":"","sources":["../../../../src/prompt/utils/cloneToolResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAIhE;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,mBAAmB,GAAG,mBAAmB,CAYtF"}
@@ -1,27 +1,22 @@
1
1
  import { deepClone } from "./deepClone.js";
2
2
  /**
3
- * Creates a deep clone of a tool result object to prevent external mutation.
3
+ * Creates a deep clone of a tool outcome object to prevent external mutation.
4
4
  *
5
5
  * This function clones all potentially complex fields (result and error) while
6
- * preserving primitive identifiers (toolCallId and toolName).
6
+ * preserving primitive identifiers (id and name).
7
7
  *
8
- * @param toolResult The tool result to clone.
9
- * @returns A deep copy of the tool result with all complex fields cloned.
8
+ * @param toolOutcome The tool outcome to clone.
9
+ * @returns A deep copy of the tool outcome with all complex fields cloned.
10
10
  */
11
- export function cloneToolResult(toolResult) {
11
+ export function cloneToolOutcome(toolOutcome) {
12
12
  const cloned = {
13
- toolCallId: toolResult.toolCallId,
14
- toolName: toolResult.toolName,
15
- result: toolResult.result !== undefined ? deepClone(toolResult.result) : undefined,
13
+ id: toolOutcome.id,
14
+ name: toolOutcome.name,
15
+ result: toolOutcome.result !== undefined ? deepClone(toolOutcome.result) : undefined,
16
16
  };
17
- // Deep clone error only if it's a non-null object
18
- if (toolResult.error !== undefined) {
19
- if (typeof toolResult.error === "object" && toolResult.error !== null) {
20
- cloned.error = deepClone(toolResult.error);
21
- }
22
- else {
23
- cloned.error = toolResult.error;
24
- }
17
+ // Deep clone error only if it's a non-undefined object
18
+ if (toolOutcome.error !== undefined) {
19
+ cloned.error = deepClone(toolOutcome.error);
25
20
  }
26
21
  return cloned;
27
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"cloneToolResult.js","sourceRoot":"","sources":["../../../../src/prompt/utils/cloneToolResult.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;;;;;;;GAQG;AACH,MAAM,UAAU,eAAe,CAAC,UAA0B;IACtD,MAAM,MAAM,GAAmB;QAC3B,UAAU,EAAE,UAAU,CAAC,UAAU;QACjC,QAAQ,EAAE,UAAU,CAAC,QAAQ;QAC7B,MAAM,EAAE,UAAU,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS;KACrF,CAAC;IAEF,kDAAkD;IAClD,IAAI,UAAU,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;QACjC,IAAI,OAAO,UAAU,CAAC,KAAK,KAAK,QAAQ,IAAI,UAAU,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;YACpE,MAAM,CAAC,KAAK,GAAG,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAC/C,CAAC;aAAM,CAAC;YACJ,MAAM,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;QACpC,CAAC;IACL,CAAC;IAED,OAAO,MAAM,CAAC;AAClB,CAAC"}
1
+ {"version":3,"file":"cloneToolResult.js","sourceRoot":"","sources":["../../../../src/prompt/utils/cloneToolResult.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;;;;;;;GAQG;AACH,MAAM,UAAU,gBAAgB,CAAC,WAAgC;IAC7D,MAAM,MAAM,GAAwB;QAChC,EAAE,EAAE,WAAW,CAAC,EAAE;QAClB,IAAI,EAAE,WAAW,CAAC,IAAI;QACtB,MAAM,EAAE,WAAW,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS;KACvF,CAAC;IAEF,uDAAuD;IACvD,IAAI,WAAW,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;QAClC,MAAM,CAAC,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAChD,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC"}
@@ -1,5 +1,3 @@
1
- export { cloneToolResult } from "./cloneToolResult.js";
1
+ export { cloneToolOutcome } from "./cloneToolResult.js";
2
2
  export { deepClone } from "./deepClone.js";
3
- export { normalizeTextPrompt } from "./normalizeTextPrompt.js";
4
- export { normalizeToolResult } from "./normalizeToolResult.js";
5
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/prompt/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/prompt/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,5 +1,3 @@
1
- export { cloneToolResult } from "./cloneToolResult.js";
1
+ export { cloneToolOutcome } from "./cloneToolResult.js";
2
2
  export { deepClone } from "./deepClone.js";
3
- export { normalizeTextPrompt } from "./normalizeTextPrompt.js";
4
- export { normalizeToolResult } from "./normalizeToolResult.js";
5
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/prompt/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/prompt/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC"}
@@ -2,7 +2,7 @@ import type { CoreApiChatRequest, CoreApiChatResponse, LongPollingActionRequest,
2
2
  import type { AxiosInstance } from "axios";
3
3
  import type { ICoreApiProvider } from "../../interfaces/index.js";
4
4
  import type { CoreApiProviderConfig, CoreApiProviderRoutes } from "./interfaces/index.js";
5
- import type { RequestOptions } from "./types.js";
5
+ import type { RequestOptions, StreamingRequestOptions } from "./types.js";
6
6
  /**
7
7
  * Axios based Core API provider implementation
8
8
  */
@@ -15,14 +15,53 @@ export declare class CoreApiProvider implements ICoreApiProvider {
15
15
  * Routes used by the provider when issuing requests.
16
16
  */
17
17
  protected readonly routes: Required<CoreApiProviderRoutes>;
18
+ /**
19
+ * Base URL for the API (stored for streaming requests that use fetch)
20
+ */
21
+ private readonly baseUrl;
22
+ /**
23
+ * Auth headers for streaming requests that use fetch
24
+ */
25
+ private readonly authHeaders;
18
26
  /**
19
27
  * @param config Core API provider configuration
20
28
  */
21
29
  constructor({ baseURL, timeout, headers, httpClientFactory, routes }: CoreApiProviderConfig);
22
30
  /**
23
31
  * Sends a chat message to the Core API
32
+ *
33
+ * @param body - The request body
34
+ * @param options - Request options including abort signal and onRequestId callback
35
+ * @returns The API response
24
36
  */
25
37
  sendMessage(body: CoreApiChatRequest["body"], options?: RequestOptions): Promise<CoreApiChatResponse>;
38
+ /**
39
+ * Sends a chat message with streaming response via SSE.
40
+ *
41
+ * Instead of waiting for the full response, this method streams telemetry events
42
+ * in real-time as they occur during orchestration. The final result is delivered
43
+ * through the `onComplete` callback.
44
+ *
45
+ * This eliminates the need for a separate telemetry subscription - events and
46
+ * the result are delivered through a single HTTP connection.
47
+ *
48
+ * @param body - The request body (same as sendMessage)
49
+ * @param options - Streaming options with event callbacks
50
+ * @returns A promise that resolves when the stream ends (either successfully or with error)
51
+ *
52
+ * @example
53
+ * ```typescript
54
+ * await provider.sendMessageStreaming(
55
+ * { prompt, userContext },
56
+ * {
57
+ * onEvent: (event) => console.log('Event:', event.type),
58
+ * onComplete: (result) => console.log('Done:', result.text),
59
+ * onError: (error) => console.error('Error:', error),
60
+ * }
61
+ * );
62
+ * ```
63
+ */
64
+ sendMessageStreaming(body: CoreApiChatRequest["body"], options?: StreamingRequestOptions): Promise<void>;
26
65
  /**
27
66
  * Polls the Core API for transaction status
28
67
  */
@@ -1 +1 @@
1
- {"version":3,"file":"CoreApiProvider.d.ts","sourceRoot":"","sources":["../../../../src/providers/coreApiProvider/CoreApiProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGR,kBAAkB,EAClB,mBAAmB,EAEnB,wBAAwB,EACxB,yBAAyB,EAC5B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,aAAa,EAAsB,MAAM,OAAO,CAAC;AAG/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC1F,OAAO,KAAK,EAAqB,cAAc,EAAE,MAAM,YAAY,CAAC;AAIpE;;GAEG;AACH,qBAAa,eAAgB,YAAW,gBAAgB;IACpD;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAEzC;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,qBAAqB,CAAC,CAAC;IAE3D;;OAEG;gBACS,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,EAAE,qBAAqB;IAmB3F;;OAEG;IACU,WAAW,CACpB,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,EAChC,OAAO,GAAE,cAAmB,GAC7B,OAAO,CAAC,mBAAmB,CAAC;IAgB/B;;OAEG;IACU,gBAAgB,CACzB,MAAM,EAAE,wBAAwB,CAAC,QAAQ,CAA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;IACU,WAAW,CACpB,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,EAChC,OAAO,GAAE,cAAmB,GAC7B,OAAO,CAAC,mBAAmB,CAAC;IAiC/B;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACU,oBAAoB,CAC7B,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,EAChC,OAAO,GAAE,uBAA4B,GACtC,OAAO,CAAC,IAAI,CAAC;IA6EhB;;OAEG;IACU,gBAAgB,CACzB,MAAM,EAAE,wBAAwB,CAAC,QAAQ,CAAC,EAC1C,OAAO,GAAE,cAAmB,GAC7B,OAAO,CAAC,yBAAyB,CAAC;IAuBrC,kBAAkB;IACX,SAAS,IAAI,QAAQ,CAAC,qBAAqB,CAAC;IAInD;;OAEG;IACH,SAAS,CAAC,kBAAkB,CAAC,OAAO,EAAE,cAAc,GAAG;QAAE,MAAM,CAAC,EAAE,WAAW,CAAA;KAAE;IAM/E,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,iBAAiB;CAO5B"}
@@ -1,4 +1,7 @@
1
1
  import axios from "axios";
2
+ import { stringify } from "viem";
3
+ import { generateUUID } from "../../chat/utils/index.js";
4
+ import { parseSSEStream, StreamingHttpError, StreamingResponseBodyNull, StreamingServerError, } from "../../streaming/index.js";
2
5
  import { AsyncToolCheckerErrorHandler, ChatErrorHandler } from "./CoreApiErrorHandler.js";
3
6
  import { CoreApiAuthenticationMissing } from "./errors/index.js";
4
7
  /**
@@ -13,15 +16,25 @@ export class CoreApiProvider {
13
16
  * Routes used by the provider when issuing requests.
14
17
  */
15
18
  routes;
19
+ /**
20
+ * Base URL for the API (stored for streaming requests that use fetch)
21
+ */
22
+ baseUrl;
23
+ /**
24
+ * Auth headers for streaming requests that use fetch
25
+ */
26
+ authHeaders;
16
27
  /**
17
28
  * @param config Core API provider configuration
18
29
  */
19
30
  constructor({ baseURL, timeout, headers, httpClientFactory, routes }) {
20
31
  const authHeaders = this.ensureAuthHeaders(headers);
32
+ this.authHeaders = authHeaders;
33
+ this.baseUrl = this.resolveBaseUrl(baseURL);
21
34
  const resolveClientFactory = httpClientFactory ??
22
35
  ((configuration) => axios.create(configuration));
23
36
  this.client = resolveClientFactory({
24
- baseURL: this.resolveBaseUrl(baseURL),
37
+ baseURL: this.baseUrl,
25
38
  timeout,
26
39
  headers: this.buildDefaultHeaders(authHeaders),
27
40
  });
@@ -32,11 +45,29 @@ export class CoreApiProvider {
32
45
  }
33
46
  /**
34
47
  * Sends a chat message to the Core API
48
+ *
49
+ * @param body - The request body
50
+ * @param options - Request options including abort signal and onRequestId callback
51
+ * @returns The API response
35
52
  */
36
53
  async sendMessage(body, options = {}) {
37
54
  const requestConfig = this.buildRequestConfig(options);
55
+ // Generate a requestId for telemetry if not already provided
56
+ const requestId = body.requestId ?? generateUUID();
57
+ const bodyWithRequestId = {
58
+ ...body,
59
+ requestId,
60
+ };
38
61
  try {
39
- const response = await this.client.post(this.routes.chat, body, requestConfig);
62
+ const requestPromise = this.client.post(this.routes.chat, bodyWithRequestId, requestConfig);
63
+ // Notify caller of the requestId after request is initiated
64
+ // This allows connecting to telemetry stream while request is in flight
65
+ if (options.onRequestId) {
66
+ // Use queueMicrotask to ensure callback runs after request starts
67
+ // but before we block on await
68
+ queueMicrotask(() => options.onRequestId(requestId));
69
+ }
70
+ const response = await requestPromise;
40
71
  return response.data;
41
72
  }
42
73
  catch (error) {
@@ -44,6 +75,97 @@ export class CoreApiProvider {
44
75
  return errorResponse;
45
76
  }
46
77
  }
78
+ /**
79
+ * Sends a chat message with streaming response via SSE.
80
+ *
81
+ * Instead of waiting for the full response, this method streams telemetry events
82
+ * in real-time as they occur during orchestration. The final result is delivered
83
+ * through the `onComplete` callback.
84
+ *
85
+ * This eliminates the need for a separate telemetry subscription - events and
86
+ * the result are delivered through a single HTTP connection.
87
+ *
88
+ * @param body - The request body (same as sendMessage)
89
+ * @param options - Streaming options with event callbacks
90
+ * @returns A promise that resolves when the stream ends (either successfully or with error)
91
+ *
92
+ * @example
93
+ * ```typescript
94
+ * await provider.sendMessageStreaming(
95
+ * { prompt, userContext },
96
+ * {
97
+ * onEvent: (event) => console.log('Event:', event.type),
98
+ * onComplete: (result) => console.log('Done:', result.text),
99
+ * onError: (error) => console.error('Error:', error),
100
+ * }
101
+ * );
102
+ * ```
103
+ */
104
+ async sendMessageStreaming(body, options = {}) {
105
+ const requestId = body.requestId ?? generateUUID();
106
+ const bodyWithRequestId = {
107
+ ...body,
108
+ requestId,
109
+ };
110
+ // Notify caller of the requestId for API consistency with sendMessage
111
+ options.onRequestId?.(requestId);
112
+ const url = `${this.baseUrl}${this.routes.chat}`;
113
+ try {
114
+ const response = await fetch(url, {
115
+ method: "POST",
116
+ headers: {
117
+ "Content-Type": "application/json",
118
+ Accept: "text/event-stream",
119
+ ...this.authHeaders,
120
+ },
121
+ body: stringify(bodyWithRequestId),
122
+ signal: options.signal,
123
+ });
124
+ if (!response.ok) {
125
+ const errorText = await response.text();
126
+ let errorMessage;
127
+ try {
128
+ const errorJson = JSON.parse(errorText);
129
+ errorMessage = errorJson.message ?? `HTTP ${response.status}`;
130
+ }
131
+ catch {
132
+ errorMessage = errorText || `HTTP ${response.status}`;
133
+ }
134
+ throw new StreamingHttpError(response.status, errorMessage);
135
+ }
136
+ if (!response.body) {
137
+ throw new StreamingResponseBodyNull();
138
+ }
139
+ // Parse SSE stream and dispatch events to callbacks
140
+ for await (const event of parseSSEStream(response.body, options.signal)) {
141
+ switch (event.type) {
142
+ case "telemetry": {
143
+ const telemetryEvent = event.data;
144
+ options.onEvent?.(telemetryEvent);
145
+ // Handle text_delta events for streaming text display
146
+ if (telemetryEvent.type === "text_delta") {
147
+ options.onTextDelta?.(telemetryEvent.data.delta);
148
+ }
149
+ break;
150
+ }
151
+ case "result":
152
+ options.onComplete?.(event.data);
153
+ break;
154
+ case "error":
155
+ options.onError?.(new StreamingServerError(event.data.requestId, event.data.data.message, event.data.data.code));
156
+ break;
157
+ case "stream_end":
158
+ // Stream ended, nothing more to do
159
+ break;
160
+ }
161
+ }
162
+ }
163
+ catch (error) {
164
+ const err = error instanceof Error ? error : new Error(String(error));
165
+ options.onError?.(err);
166
+ throw err;
167
+ }
168
+ }
47
169
  /**
48
170
  * Polls the Core API for transaction status
49
171
  */
@@ -1 +1 @@
1
- {"version":3,"file":"CoreApiProvider.js","sourceRoot":"","sources":["../../../../src/providers/coreApiProvider/CoreApiProvider.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,4BAA4B,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC1F,OAAO,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AAEjE;;GAEG;AACH,MAAM,OAAO,eAAe;IACxB;;OAEG;IACgB,MAAM,CAAgB;IAEzC;;OAEG;IACgB,MAAM,CAAkC;IAE3D;;OAEG;IACH,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAyB;QACvF,MAAM,WAAW,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAEpD,MAAM,oBAAoB,GACtB,iBAAiB;YACjB,CAAC,CAAC,aAAkC,EAAiB,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC;QAEzF,IAAI,CAAC,MAAM,GAAG,oBAAoB,CAAC;YAC/B,OAAO,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;YACrC,OAAO;YACP,OAAO,EAAE,IAAI,CAAC,mBAAmB,CAAC,WAAW,CAAC;SACjD,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,GAAG;YACV,IAAI,EAAE,MAAM,EAAE,IAAI,IAAI,eAAe;YACrC,YAAY,EAAE,MAAM,EAAE,YAAY,IAAI,uBAAuB;SAChE,CAAC;IACN,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,WAAW,C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,MAAM;SACzB,CAAC;IACN,CAAC;IAEO,cAAc,CAAC,OAAyC;QAC5D,sDAAsD;QACtD,OAAO,OAAO,IAAI,6BAA6B,CAAC;IACpD,CAAC;IAEO,mBAAmB,CAAC,OAA2B;QACnD,OAAO;YACH,cAAc,EAAE,kBAAkB;YAClC,GAAG,OAAO;SACb,CAAC;IACN,CAAC;IAEO,iBAAiB,CAAC,OAA4B;QAClD,IAAI,OAAO,EAAE,CAAC,WAAW,CAAC,KAAK,SAAS,EAAE,CAAC;YACvC,MAAM,IAAI,4BAA4B,EAAE,CAAC;QAC7C,CAAC;QAED,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ"}
1
+ {"version":3,"file":"CoreApiProvider.js","sourceRoot":"","sources":["../../../../src/providers/coreApiProvider/CoreApiProvider.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAKjC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EACH,cAAc,EACd,kBAAkB,EAClB,yBAAyB,EACzB,oBAAoB,GACvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,4BAA4B,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC1F,OAAO,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AAEjE;;GAEG;AACH,MAAM,OAAO,eAAe;IACxB;;OAEG;IACgB,MAAM,CAAgB;IAEzC;;OAEG;IACgB,MAAM,CAAkC;IAE3D;;OAEG;IACc,OAAO,CAAS;IAEjC;;OAEG;IACc,WAAW,CAAqB;IAEjD;;OAEG;IACH,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAyB;QACvF,MAAM,WAAW,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACpD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC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,CAAC,OAA4B;QAClD,IAAI,OAAO,EAAE,CAAC,WAAW,CAAC,KAAK,SAAS,EAAE,CAAC;YACvC,MAAM,IAAI,4BAA4B,EAAE,CAAC;QAC7C,CAAC;QAED,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ"}
@@ -1,6 +1,6 @@
1
1
  export * from "./CoreApiProvider.js";
2
2
  export type { ICoreApiProvider } from "../../interfaces/index.js";
3
3
  export type { CoreApiProviderConfig, CoreApiProviderRoutes } from "./interfaces/index.js";
4
- export type { HttpClientFactory, RequestOptions } from "./types.js";
4
+ export type { HttpClientFactory, RequestOptions, StreamingRequestOptions } from "./types.js";
5
5
  export * from "./errors/index.js";
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/providers/coreApiProvider/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,YAAY,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC1F,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACpE,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/providers/coreApiProvider/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,YAAY,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC1F,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAC7F,cAAc,mBAAmB,CAAC"}
@@ -1,3 +1,4 @@
1
+ import type { TelemetryEvent, ValidatedResultEventData } from "@illalabs/interfaces";
1
2
  import type { AxiosInstance, AxiosRequestConfig } from "axios";
2
3
  /**
3
4
  * Factory for constructing configured Axios clients.
@@ -12,5 +13,48 @@ export interface RequestOptions {
12
13
  * Abort signal used to cancel the request
13
14
  */
14
15
  readonly signal?: AbortSignal;
16
+ /**
17
+ * Callback invoked with the requestId after the request is initiated.
18
+ * This enables connecting to telemetry streams for real-time event updates.
19
+ * The callback is called asynchronously after the HTTP request starts.
20
+ */
21
+ readonly onRequestId?: (requestId: string) => void;
22
+ }
23
+ /**
24
+ * Options for streaming chat requests.
25
+ * Streaming mode sends telemetry events and the final result through a single SSE connection.
26
+ */
27
+ export interface StreamingRequestOptions {
28
+ /**
29
+ * Abort signal used to cancel the request
30
+ */
31
+ readonly signal?: AbortSignal;
32
+ /**
33
+ * Callback invoked with the requestId after the request is initiated.
34
+ * Provides API consistency with the non-streaming sendMessage method.
35
+ * The callback is called synchronously before the fetch request starts.
36
+ */
37
+ readonly onRequestId?: (requestId: string) => void;
38
+ /**
39
+ * Called when a telemetry event is received during orchestration.
40
+ * Events are emitted in real-time as they occur on the server.
41
+ */
42
+ readonly onEvent?: (event: TelemetryEvent) => void;
43
+ /**
44
+ * Called when a text delta is received from the LLM.
45
+ * This enables real-time display of LLM-generated text as it streams in.
46
+ * @param delta - The text chunk received from the LLM
47
+ */
48
+ readonly onTextDelta?: (delta: string) => void;
49
+ /**
50
+ * Called when the orchestration completes successfully.
51
+ * The result contains the final chat response with messages, text, and pending tools.
52
+ * Type is inferred from resultEventDataSchema for compile-time safety.
53
+ */
54
+ readonly onComplete?: (result: ValidatedResultEventData) => void;
55
+ /**
56
+ * Called when an error occurs during streaming or orchestration.
57
+ */
58
+ readonly onError?: (error: Error) => void;
15
59
  }
16
60
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/providers/coreApiProvider/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAE/D;;;G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