@aintela/chat 0.2.15

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 (218) hide show
  1. package/README.md +161 -0
  2. package/dist/ClientMessage-EKgfuTp8.js +40 -0
  3. package/dist/ClientMessage-EKgfuTp8.js.map +1 -0
  4. package/dist/Memory-DjLZqgbF.js +84 -0
  5. package/dist/Memory-DjLZqgbF.js.map +1 -0
  6. package/dist/Prompt-DZb7OaPp.js +37 -0
  7. package/dist/Prompt-DZb7OaPp.js.map +1 -0
  8. package/dist/artifactHtmlHandler-CMQJf1cX.js +41 -0
  9. package/dist/artifactHtmlHandler-CMQJf1cX.js.map +1 -0
  10. package/dist/auth-CcTgInbY.js +524 -0
  11. package/dist/auth-CcTgInbY.js.map +1 -0
  12. package/dist/components.d.ts +2 -0
  13. package/dist/components.js +14159 -0
  14. package/dist/components.js.map +1 -0
  15. package/dist/environmentUtils-BaKw5_VD.js +462 -0
  16. package/dist/environmentUtils-BaKw5_VD.js.map +1 -0
  17. package/dist/hooks.d.ts +2 -0
  18. package/dist/hooks.js +9 -0
  19. package/dist/hooks.js.map +1 -0
  20. package/dist/httpArtifactService-BAR60Gu1.js +1802 -0
  21. package/dist/httpArtifactService-BAR60Gu1.js.map +1 -0
  22. package/dist/httpSessionService-5Kr__oQL.js +279 -0
  23. package/dist/httpSessionService-5Kr__oQL.js.map +1 -0
  24. package/dist/index.d.ts +2 -0
  25. package/dist/index.js +226 -0
  26. package/dist/index.js.map +1 -0
  27. package/dist/interfaces.d.ts +2 -0
  28. package/dist/interfaces.js +11 -0
  29. package/dist/interfaces.js.map +1 -0
  30. package/dist/models.d.ts +2 -0
  31. package/dist/models.js +54 -0
  32. package/dist/models.js.map +1 -0
  33. package/dist/serializer-DyHZxlAG.js +1276 -0
  34. package/dist/serializer-DyHZxlAG.js.map +1 -0
  35. package/dist/services.d.ts +2 -0
  36. package/dist/services.js +16 -0
  37. package/dist/services.js.map +1 -0
  38. package/dist/sortable-table-DgQHxWIh.js +819 -0
  39. package/dist/sortable-table-DgQHxWIh.js.map +1 -0
  40. package/dist/src/ErrorBondary.d.ts +10 -0
  41. package/dist/src/components/AiChat/AiChat.d.ts +3 -0
  42. package/dist/src/components/AiChat/AiChatContext.d.ts +76 -0
  43. package/dist/src/components/AiChat/AiChatDrawer.d.ts +3 -0
  44. package/dist/src/components/AiChat/AiChatFloating.d.ts +3 -0
  45. package/dist/src/components/AiChat/AiChatProvider.d.ts +7 -0
  46. package/dist/src/components/AiChat/AiChatSessionStore.d.ts +1 -0
  47. package/dist/src/components/AiChat/AiChatTypes.d.ts +227 -0
  48. package/dist/src/components/AiChat/ChatPane/AlertDialog.d.ts +12 -0
  49. package/dist/src/components/AiChat/ChatPane/AskUserSheet.d.ts +25 -0
  50. package/dist/src/components/AiChat/ChatPane/ChatPane.d.ts +7 -0
  51. package/dist/src/components/AiChat/ChatPane/ConnectionState.d.ts +2 -0
  52. package/dist/src/components/AiChat/ChatPane/CurrentMessage.d.ts +12 -0
  53. package/dist/src/components/AiChat/ChatPane/Event.d.ts +6 -0
  54. package/dist/src/components/AiChat/ChatPane/FloatingConnectionStatus.d.ts +8 -0
  55. package/dist/src/components/AiChat/ChatPane/FriendlyPartDisplay.d.ts +13 -0
  56. package/dist/src/components/AiChat/ChatPane/LastPrompts.d.ts +9 -0
  57. package/dist/src/components/AiChat/ChatPane/Message.d.ts +11 -0
  58. package/dist/src/components/AiChat/ChatPane/MessageAgent.d.ts +16 -0
  59. package/dist/src/components/AiChat/ChatPane/MessageNonTextDisplay.d.ts +16 -0
  60. package/dist/src/components/AiChat/ChatPane/MessagePart.d.ts +15 -0
  61. package/dist/src/components/AiChat/ChatPane/MessagePersona.d.ts +13 -0
  62. package/dist/src/components/AiChat/ChatPane/MessageUser.d.ts +8 -0
  63. package/dist/src/components/AiChat/ChatPane/ModelSelector.d.ts +11 -0
  64. package/dist/src/components/AiChat/ChatPane/Prompt.d.ts +9 -0
  65. package/dist/src/components/AiChat/ChatPane/SessionDataDialog.d.ts +7 -0
  66. package/dist/src/components/AiChat/ChatPane/StickyQuestionHeader.d.ts +7 -0
  67. package/dist/src/components/AiChat/ChatPane/StreamStatistics.d.ts +32 -0
  68. package/dist/src/components/AiChat/ChatPane/SubAgentBox.d.ts +9 -0
  69. package/dist/src/components/AiChat/ChatPane/TaskList.d.ts +6 -0
  70. package/dist/src/components/AiChat/ChatPane/friendlyToolConfig.d.ts +11 -0
  71. package/dist/src/components/AiChat/ChatPane/parts/AskUserPart.d.ts +8 -0
  72. package/dist/src/components/AiChat/ChatPane/parts/BoxedPart.d.ts +4 -0
  73. package/dist/src/components/AiChat/ChatPane/parts/FunctionPart.d.ts +4 -0
  74. package/dist/src/components/AiChat/ChatPane/parts/SuspendedPart.d.ts +4 -0
  75. package/dist/src/components/AiChat/ChatPane/parts/TextPart.d.ts +4 -0
  76. package/dist/src/components/AiChat/ChatPane/parts/ThoughtPart.d.ts +4 -0
  77. package/dist/src/components/AiChat/ChatPane/parts/UiToolDispatcher.d.ts +16 -0
  78. package/dist/src/components/AiChat/ChatPane/parts/WaitingPart.d.ts +4 -0
  79. package/dist/src/components/AiChat/ChatPane/parts/index.d.ts +20 -0
  80. package/dist/src/components/AiChat/ChatPane/parts/index.test.d.ts +1 -0
  81. package/dist/src/components/AiChat/ChatPane/parts/types.d.ts +22 -0
  82. package/dist/src/components/AiChat/ChatPane/parts/uiToolRegistry.d.ts +121 -0
  83. package/dist/src/components/AiChat/index.d.ts +13 -0
  84. package/dist/src/components/AiChat/sessionStateManagerService.d.ts +47 -0
  85. package/dist/src/components/AiChat/stateConfiguration.d.ts +80 -0
  86. package/dist/src/components/Library/ArtifactRender.d.ts +18 -0
  87. package/dist/src/components/Library/DelayTextComponent.d.ts +9 -0
  88. package/dist/src/components/Library/LinearBackgroundProgress.d.ts +8 -0
  89. package/dist/src/components/Library/LinearProgressBarWithMarkers.d.ts +14 -0
  90. package/dist/src/components/Library/LoadingDots.d.ts +8 -0
  91. package/dist/src/components/Library/MarkdowmExtended.d.ts +32 -0
  92. package/dist/src/components/Library/VizLibrary/Skeletons/ChartSkeleton.d.ts +3 -0
  93. package/dist/src/components/Library/VizLibrary/Skeletons/IFrameSkeleton.d.ts +3 -0
  94. package/dist/src/components/Library/VizLibrary/Skeletons/MetricGroupSkeleton.d.ts +8 -0
  95. package/dist/src/components/Library/VizLibrary/Skeletons/MetricSkeleton.d.ts +7 -0
  96. package/dist/src/components/Library/VizLibrary/Skeletons/TableSkeleton.d.ts +7 -0
  97. package/dist/src/components/Library/VizLibrary/index.d.ts +5 -0
  98. package/dist/src/components/LlmResponseRender/EnvironmentContext.d.ts +33 -0
  99. package/dist/src/components/LlmResponseRender/GeneratingVisualization.d.ts +13 -0
  100. package/dist/src/components/LlmResponseRender/LiveJsxBlock.d.ts +55 -0
  101. package/dist/src/components/LlmResponseRender/LlmResponseRender.d.ts +29 -0
  102. package/dist/src/components/LlmResponseRender/index.d.ts +6 -0
  103. package/dist/src/components/LlmResponseRender/jsxScope.d.ts +41 -0
  104. package/dist/src/components/LlmResponseRender/liveTsxConfig.d.ts +18 -0
  105. package/dist/src/components/LlmResponseRender/parseBlocks.d.ts +39 -0
  106. package/dist/src/components/Stopwatch.d.ts +12 -0
  107. package/dist/src/components/index.d.ts +30 -0
  108. package/dist/src/components/v2/AgentActivityV2.d.ts +32 -0
  109. package/dist/src/components/v2/AiChatFloatingV2.d.ts +3 -0
  110. package/dist/src/components/v2/AiChatV2Pane.d.ts +20 -0
  111. package/dist/src/components/v2/AppBarV2.d.ts +38 -0
  112. package/dist/src/components/v2/AppRailV2.d.ts +21 -0
  113. package/dist/src/components/v2/AppShellV2.d.ts +13 -0
  114. package/dist/src/components/v2/ChatsHistoryV2.d.ts +47 -0
  115. package/dist/src/components/v2/LastPromptsV2.d.ts +6 -0
  116. package/dist/src/components/v2/MobileDrawerV2.d.ts +43 -0
  117. package/dist/src/components/v2/PromptV2.d.ts +164 -0
  118. package/dist/src/components/v2/RunProgressPanelV2.d.ts +28 -0
  119. package/dist/src/components/v2/RunProgressStripV2.d.ts +2 -0
  120. package/dist/src/components/v2/Sparkline.d.ts +10 -0
  121. package/dist/src/components/v2/SubAgentBoxV2.d.ts +15 -0
  122. package/dist/src/components/v2/TaskListV2.d.ts +8 -0
  123. package/dist/src/components/v2/icons.d.ts +42 -0
  124. package/dist/src/components/v2/index.d.ts +34 -0
  125. package/dist/src/components/v2/styles.d.ts +6 -0
  126. package/dist/src/components/v2/toolCategories.d.ts +18 -0
  127. package/dist/src/components/v2/useResponsiveLayout.d.ts +9 -0
  128. package/dist/src/hooks/index.d.ts +4 -0
  129. package/dist/src/hooks/useChatSessions.d.ts +68 -0
  130. package/dist/src/hooks/useContainerWidth.d.ts +2 -0
  131. package/dist/src/hooks/useIntervalHook.d.ts +2 -0
  132. package/dist/src/index.d.ts +7 -0
  133. package/dist/src/interfaces/IHeartbeatPort.d.ts +4 -0
  134. package/dist/src/interfaces/INotificationPort.d.ts +4 -0
  135. package/dist/src/interfaces/index.d.ts +4 -0
  136. package/dist/src/interfaces/memoryService.d.ts +37 -0
  137. package/dist/src/interfaces/schedulingService.d.ts +64 -0
  138. package/dist/src/models/Agent.d.ts +32 -0
  139. package/dist/src/models/Artifact.d.ts +21 -0
  140. package/dist/src/models/ArtifactData.d.ts +30 -0
  141. package/dist/src/models/ChatSession.d.ts +57 -0
  142. package/dist/src/models/ClientMessage.d.ts +38 -0
  143. package/dist/src/models/Customer.d.ts +7 -0
  144. package/dist/src/models/EndMessageData.d.ts +6 -0
  145. package/dist/src/models/IAbiContext.d.ts +8 -0
  146. package/dist/src/models/IDBStorable.d.ts +14 -0
  147. package/dist/src/models/Interaction.d.ts +36 -0
  148. package/dist/src/models/InteractionPart.d.ts +69 -0
  149. package/dist/src/models/LlmSession.d.ts +10 -0
  150. package/dist/src/models/Memory.d.ts +48 -0
  151. package/dist/src/models/Notification.d.ts +11 -0
  152. package/dist/src/models/Prompt.d.ts +20 -0
  153. package/dist/src/models/SendMessageResponse.d.ts +21 -0
  154. package/dist/src/models/ServerEvent.d.ts +130 -0
  155. package/dist/src/models/connectionState.d.ts +9 -0
  156. package/dist/src/models/contexts.d.ts +33 -0
  157. package/dist/src/models/enums.d.ts +333 -0
  158. package/dist/src/models/index.d.ts +36 -0
  159. package/dist/src/models/semanticKernelModel/index.d.ts +2 -0
  160. package/dist/src/models/semanticKernelModel/init.d.ts +1 -0
  161. package/dist/src/models/semanticKernelModel/models.d.ts +208 -0
  162. package/dist/src/models/semanticKernelModel/serializer.d.ts +40 -0
  163. package/dist/src/models/serverReponse.d.ts +5 -0
  164. package/dist/src/models/subAgentModel.d.ts +48 -0
  165. package/dist/src/models/todoListModel.d.ts +18 -0
  166. package/dist/src/services/WebSocketConnection/WebSocketConnectionV2.d.ts +163 -0
  167. package/dist/src/services/WebSocketConnection/webSocketConnection.d.ts +75 -0
  168. package/dist/src/services/artifactHtmlHandler.d.ts +6 -0
  169. package/dist/src/services/eventBusService.d.ts +119 -0
  170. package/dist/src/services/httpArtifactService.d.ts +25 -0
  171. package/dist/src/services/httpSessionService.d.ts +31 -0
  172. package/dist/src/services/index.d.ts +16 -0
  173. package/dist/src/services/interactionService.d.ts +28 -0
  174. package/dist/src/services/interactionService.test.d.ts +1 -0
  175. package/dist/src/services/interfaces/artifactService.d.ts +13 -0
  176. package/dist/src/services/servers/AgentGatewayService.d.ts +167 -0
  177. package/dist/src/services/servers/AgentGatewayWSAsync.d.ts +44 -0
  178. package/dist/src/services/servers/agentGatewayWSAsync.test.d.ts +1 -0
  179. package/dist/src/services/servers/sessionService/ISessionService.d.ts +20 -0
  180. package/dist/src/services/sessionEventDecoder.d.ts +22 -0
  181. package/dist/src/services/sessionEventDecoder.test.d.ts +1 -0
  182. package/dist/src/services/storageService.d.ts +73 -0
  183. package/dist/src/themes/index.d.ts +3 -0
  184. package/dist/src/themes/v2-chart-palette.d.ts +1 -0
  185. package/dist/src/themes/v2.d.ts +71 -0
  186. package/dist/src/utils/auth.d.ts +9 -0
  187. package/dist/src/utils/envOverrides.d.ts +23 -0
  188. package/dist/src/utils/envUtils.d.ts +13 -0
  189. package/dist/src/utils/environmentUtils.d.ts +43 -0
  190. package/dist/src/utils/fileUtils.d.ts +6 -0
  191. package/dist/src/utils/getAgentArtifactsBaseUrl.d.ts +1 -0
  192. package/dist/src/utils/getAgentBaseUrl.d.ts +1 -0
  193. package/dist/src/utils/getDotNetBaseUrl.d.ts +5 -0
  194. package/dist/src/utils/index.d.ts +17 -0
  195. package/dist/src/utils/interactionIdChecker.d.ts +27 -0
  196. package/dist/src/utils/jsonDetector.d.ts +50 -0
  197. package/dist/src/utils/jsonUtils.d.ts +1 -0
  198. package/dist/src/utils/materialIconsList.d.ts +42 -0
  199. package/dist/src/utils/materialIconsSvg.d.ts +51 -0
  200. package/dist/src/utils/objectUtils.d.ts +31 -0
  201. package/dist/src/utils/parseArtifact.d.ts +3 -0
  202. package/dist/src/utils/sessionWindowParameters.d.ts +3 -0
  203. package/dist/src/utils/sortable-table.d.ts +31 -0
  204. package/dist/src/utils/stringUtils.d.ts +8 -0
  205. package/dist/src/utils/uriUtils.d.ts +39 -0
  206. package/dist/src/utils/urlParser.d.ts +8 -0
  207. package/dist/style.css +94 -0
  208. package/dist/tests/fakes/fakeWebSocket.d.ts +32 -0
  209. package/dist/tests/fakes/makeGateway.d.ts +24 -0
  210. package/dist/tests/fixtures.d.ts +73 -0
  211. package/dist/useChatSessions-DttlifVk.js +107 -0
  212. package/dist/useChatSessions-DttlifVk.js.map +1 -0
  213. package/dist/useContainerWidth-Df2PmSoC.js +52 -0
  214. package/dist/useContainerWidth-Df2PmSoC.js.map +1 -0
  215. package/dist/utils.d.ts +2 -0
  216. package/dist/utils.js +49 -0
  217. package/dist/utils.js.map +1 -0
  218. package/package.json +127 -0
@@ -0,0 +1,333 @@
1
+ import { ConnectionState } from './connectionState';
2
+ import { Theme } from '@mui/material/styles';
3
+ export type ChatEventType = 'ChatEvent' | 'ChatResponse' | 'ChatRequest';
4
+ export declare const ChatEventType: {
5
+ readonly ChatEvent: "ChatEvent";
6
+ readonly ChatResponse: "ChatResponse";
7
+ readonly ChatRequest: "ChatRequest";
8
+ };
9
+ export type RunMode = 'interactive' | 'autonomous';
10
+ export declare const RunMode: {
11
+ readonly Interactive: "interactive";
12
+ readonly Autonomous: "autonomous";
13
+ };
14
+ export type ChatAction = 'SendMessage' | 'Suspend' | 'Ping' | 'Close' | 'Other' | 'AnswerHumanTool';
15
+ export declare const ChatAction: {
16
+ readonly SendMessage: "SendMessage";
17
+ readonly Other: "Other";
18
+ readonly Suspend: "Suspend";
19
+ readonly Close: "Close";
20
+ readonly Ping: "Ping";
21
+ readonly AnswerHumanTool: "AnswerHumanTool";
22
+ };
23
+ export type EventType = 'partial_function_call' | 'tool_event' | 'function_call' | 'not_defined' | 'function_response' | 'function_client_output' | 'user_answer' | 'video' | 'thought' | 'inline_data' | 'file_data' | 'code_execution_result' | 'executable_code' | 'text' | 'other' | 'waiting' | 'suspended' | 'server_error';
24
+ export declare const EventType: {
25
+ readonly FunctionCall: "function_call";
26
+ readonly PartialFunctionCall: "partial_function_call";
27
+ readonly FunctionResponse: "function_response";
28
+ readonly FunctionClientOutput: "function_client_output";
29
+ readonly UserAnswer: "user_answer";
30
+ readonly Video: "video";
31
+ readonly Thought: "thought";
32
+ readonly InlineData: "inline_data";
33
+ readonly FileData: "file_data";
34
+ readonly CodeExecutionResult: "code_execution_result";
35
+ readonly ExecutableCode: "executable_code";
36
+ readonly Other: "other";
37
+ readonly Text: "text";
38
+ readonly ToolEvent: "tool_event";
39
+ readonly ServerError: "server_error";
40
+ readonly NotDefined: "not_defined";
41
+ readonly Waiting: "waiting";
42
+ readonly Suspended: "suspended";
43
+ };
44
+ export declare const GetEventTypeFromPythonName: (name: string) => EventType;
45
+ export declare const GetEventTypeFromDotNetName: (name: string) => EventType;
46
+ export declare const EventTypeDescriptions: {
47
+ function_call: string;
48
+ function_response: string;
49
+ video: string;
50
+ thought: string;
51
+ inline_data: string;
52
+ file_data: string;
53
+ code_execution_result: string;
54
+ executable_code: string;
55
+ other: string;
56
+ text: string;
57
+ not_defined: string;
58
+ };
59
+ export type ResponseType = 'Regular' | 'Artifact';
60
+ export declare const ResponseType: {
61
+ readonly Regular: "Regular";
62
+ readonly Artifact: "Artifact";
63
+ };
64
+ export type AuthorType = 'User' | 'Agent' | "System";
65
+ export declare const AuthorType: {
66
+ readonly User: "User";
67
+ readonly Agent: "Agent";
68
+ readonly System: "System";
69
+ };
70
+ export type ArtifactType = 'Dashboard' | 'Chart' | 'Code';
71
+ export declare const ArtifactType: {
72
+ readonly Dashboard: "Dashboard";
73
+ readonly Chart: "Chart";
74
+ readonly Code: "Code";
75
+ };
76
+ export type AgentType = 'BI_Envision_Agent' | 'BI_Master_Customer_Agent' | 'BI_Dedicated_Customer_Agent' | 'Unknown';
77
+ export declare const AgentType: {
78
+ readonly BI_Envision_Agent: "BI_Envision_Agent";
79
+ readonly BI_Master_Customer_Agent: "BI_Master_Customer_Agent";
80
+ readonly BI_Dedicated_Customer_Agent: "BI_Dedicated_Customer_Agent";
81
+ readonly Unknown: "Unknown";
82
+ };
83
+ export type AgentMode = 'Interactive' | 'Newsletter';
84
+ export declare const AgentMode: {
85
+ readonly Interactive: "Interactive";
86
+ readonly Newsletter: "Newsletter";
87
+ };
88
+ export declare const AgentConfig: {
89
+ readonly BI_Envision_Agent: {
90
+ readonly name: "Envision";
91
+ readonly description: "Analisa dados de vendas globais\ncom insights consolidados de todos os clientes\ne métricas agregadas do mercado";
92
+ };
93
+ readonly BI_Master_Customer_Agent: {
94
+ readonly name: "Clientes Master";
95
+ readonly description: "Visão consolidada de todos os clientes\ncom análises comparativas e benchmarks\nentre diferentes organizações";
96
+ };
97
+ readonly BI_Dedicated_Customer_Agent: {
98
+ readonly name: "Cliente Único";
99
+ readonly description: "Foco em um cliente específico\ncom análises detalhadas e personalizadas\npara sua organização";
100
+ };
101
+ readonly Unknown: {
102
+ readonly name: "Não definido";
103
+ readonly description: "Não definido";
104
+ };
105
+ };
106
+ export type SkillLevel = 'FAST' | 'BALANCED' | 'PRO' | 'LIVE';
107
+ export declare const SkillLevel: {
108
+ readonly FAST: "FAST";
109
+ readonly BALANCED: "BALANCED";
110
+ readonly PRO: "PRO";
111
+ readonly LIVE: "LIVE";
112
+ };
113
+ export type ModelType = 'claude-opus-4-6' | 'claude-sonnet-4-6' | 'gemini_3_1_flash_lite_preview' | 'gemini_3_5_flash' | 'gemini-3.1-pro-preview' | 'gpt-5.1' | 'glm-5' | 'glm-4.7' | 'glm-4.7-flash' | 'kimi-k2.6' | 'kimi-k2-turbo-preview' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'deepseek-v4-pro' | 'deepseek-v4-flash' | 'wen3.6-plus' | 'qwen3.7-max' | 'uiToolShowcase';
114
+ export declare const ModelType: {
115
+ readonly gemini_3_5_flash: "gemini-3.5-flash";
116
+ readonly gemini_3_1_pro_preview: "gemini-3.1-pro-preview";
117
+ readonly gemini_3_1_flash_lite_preview: "gemini-3.1-flash-lite-preview";
118
+ readonly Gemini_live_2_5_flash_preview: "gemini-live-2.5-flash-lite";
119
+ readonly Claude_Sonnet_4_6: "claude-sonnet-4-6";
120
+ readonly Claude_Opus_4_6: "claude-opus-4-6";
121
+ readonly Gpt_5_1: "gpt-5.1";
122
+ readonly Gpt_5_2: "gpt-5.2";
123
+ readonly Gpt_5_5: "gpt-5.5-2026-04-23";
124
+ readonly Gpt_5_4_mini: "gpt-5.4-mini";
125
+ readonly 'Glm-5_2': "Glm-5.2";
126
+ readonly 'Glm_4.7': "Glm-4.7";
127
+ readonly 'Glm_4.7_flash': "Glm-4.7-Flash";
128
+ readonly Kimi_K26: "kimi-k2.6";
129
+ readonly Kimi_Turbo: "kimi-k2-turbo-preview";
130
+ readonly DeepSeek_v4_Pro: "deepseek-v4-pro";
131
+ readonly 'DeepSeek_v4-Flash': "deepseek-v4-flash";
132
+ readonly 'Qwen3_6-plus': "qwen3.6-plus";
133
+ readonly 'Qwen3_7-max': "qwen3.7-max";
134
+ readonly CorporateTravelDashboard: "CorporateTravelDashboard";
135
+ readonly ShowGuideDemo: "ShowGuideDemo";
136
+ readonly uiToolShowcase: "uiToolShowcase";
137
+ readonly AUTO: "AUTO";
138
+ };
139
+ export declare const ModelConfig: {
140
+ readonly "claude-opus-4-6": {
141
+ readonly name: "Claude Opus 4.6";
142
+ readonly description: "Modelo mais avançado da anthropic, no entanto, não tão rápido como o Sonnet";
143
+ readonly icon: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').SvgIconTypeMap<{}, "svg">> & {
144
+ muiName: string;
145
+ };
146
+ readonly contextWindow: "1M tokens";
147
+ readonly speed: "Moderate";
148
+ readonly quality: "Highest";
149
+ };
150
+ readonly "claude-sonnet-4-6": {
151
+ readonly name: "Claude Sonnet 4.6";
152
+ readonly description: "Ótima relação velocidade/qualidade";
153
+ readonly icon: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').SvgIconTypeMap<{}, "svg">> & {
154
+ muiName: string;
155
+ };
156
+ readonly contextWindow: "1M tokens";
157
+ readonly speed: "Fast";
158
+ readonly quality: "High";
159
+ };
160
+ readonly "gemini-3.1-pro-preview": {
161
+ readonly name: "Gemini 3.1 Pro";
162
+ readonly description: "Modelo mais avançado\nMelhor qualidade para tarefas complexas\nContexto: 2M tokens";
163
+ readonly icon: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').SvgIconTypeMap<{}, "svg">> & {
164
+ muiName: string;
165
+ };
166
+ readonly contextWindow: "2M tokens";
167
+ readonly speed: "Moderate";
168
+ readonly quality: "Highest";
169
+ };
170
+ readonly "gemini-3.5-flash": {
171
+ readonly name: "Gemini 3.5 Flash";
172
+ readonly description: "Equilibrio ideal entre velocidade e qualidade\nÓtimo para a maioria das tarefas\nContexto: 1M tokens";
173
+ readonly icon: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').SvgIconTypeMap<{}, "svg">> & {
174
+ muiName: string;
175
+ };
176
+ readonly contextWindow: "1M tokens";
177
+ readonly speed: "Fast";
178
+ readonly quality: "High";
179
+ };
180
+ readonly "gemini-3.1-flash-lite-preview": {
181
+ readonly name: "Gemini 3 Lite Flash";
182
+ readonly description: "NOVO: Equilibrio ideal entre velocidade e qualidade\nÓtimo para a maioria das tarefas\nContexto: 1M tokens";
183
+ readonly icon: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').SvgIconTypeMap<{}, "svg">> & {
184
+ muiName: string;
185
+ };
186
+ readonly contextWindow: "1M tokens";
187
+ readonly speed: "Fast";
188
+ readonly quality: "High";
189
+ };
190
+ readonly "gpt-5.1": {
191
+ readonly name: "Chat GPT 5.1";
192
+ readonly description: "Chat GPT 5.1";
193
+ readonly icon: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').SvgIconTypeMap<{}, "svg">> & {
194
+ muiName: string;
195
+ };
196
+ readonly contextWindow: "200k tokens";
197
+ readonly speed: "Good";
198
+ readonly quality: "High";
199
+ };
200
+ readonly "gpt-5.2": {
201
+ readonly name: "Chat GPT 5.2";
202
+ readonly description: "Chat GPT 5.2";
203
+ readonly icon: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').SvgIconTypeMap<{}, "svg">> & {
204
+ muiName: string;
205
+ };
206
+ readonly contextWindow: "200k tokens";
207
+ readonly speed: "Good";
208
+ readonly quality: "Highest";
209
+ };
210
+ readonly "gpt-5.5-2026-04-23": {
211
+ readonly name: "Chat GPT 5.5";
212
+ readonly description: "A melhor inteligência em escala para fluxos de trabalho de agentes, codificação e profissionais.";
213
+ readonly icon: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').SvgIconTypeMap<{}, "svg">> & {
214
+ muiName: string;
215
+ };
216
+ readonly contextWindow: "200k tokens";
217
+ readonly speed: "Good";
218
+ readonly quality: "Highest";
219
+ };
220
+ readonly "gpt-5.4-mini": {
221
+ readonly name: "Chat GPT 5.4 Mini";
222
+ readonly description: "Modelo compacto mais robusto da OpenAi até momento para codificação, uso de computadores e subagentes.";
223
+ readonly icon: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').SvgIconTypeMap<{}, "svg">> & {
224
+ muiName: string;
225
+ };
226
+ readonly contextWindow: "200k tokens";
227
+ readonly speed: "Fast";
228
+ readonly quality: "Highest";
229
+ };
230
+ readonly "Glm-5.2": {
231
+ readonly name: "Z.ai Glm-5";
232
+ readonly description: "Modelo open weights bem competente da Z.Ai. Apesar de gerar respostas mais longas o modelo é muito capaz.";
233
+ readonly icon: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').SvgIconTypeMap<{}, "svg">> & {
234
+ muiName: string;
235
+ };
236
+ readonly contextWindow: "200k tokens";
237
+ readonly speed: "Good";
238
+ readonly quality: "Highest";
239
+ };
240
+ readonly "Glm-4.7": {
241
+ readonly name: "Z.ai Glm-4.7";
242
+ readonly description: "";
243
+ readonly icon: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').SvgIconTypeMap<{}, "svg">> & {
244
+ muiName: string;
245
+ };
246
+ readonly contextWindow: "200k tokens";
247
+ readonly speed: "Fast";
248
+ readonly quality: "High";
249
+ };
250
+ readonly "Glm-4.7-Flash": {
251
+ readonly name: "Z.ai Glm-4.7";
252
+ readonly description: "";
253
+ readonly icon: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').SvgIconTypeMap<{}, "svg">> & {
254
+ muiName: string;
255
+ };
256
+ readonly contextWindow: "200k tokens";
257
+ readonly speed: "Good";
258
+ readonly quality: "High";
259
+ };
260
+ readonly "deepseek-v4-pro": {
261
+ readonly name: "DeepSeek Reasoner";
262
+ readonly description: "Modelo da DeepSeek com modo de raciocínio profundo (thinking mode).\nIdeal para tarefas complexas que se beneficiam de cadeia de pensamento extensa.";
263
+ readonly icon: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').SvgIconTypeMap<{}, "svg">> & {
264
+ muiName: string;
265
+ };
266
+ readonly contextWindow: "128k tokens";
267
+ readonly speed: "Moderate";
268
+ readonly quality: "Highest";
269
+ };
270
+ readonly "deepseek-v4-flash": {
271
+ readonly name: "DeepSeek Chat";
272
+ readonly description: "Modelo de chat rápido da DeepSeek, sem modo de raciocínio.\nÓtimo equilíbrio entre velocidade e qualidade para uso geral.";
273
+ readonly icon: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').SvgIconTypeMap<{}, "svg">> & {
274
+ muiName: string;
275
+ };
276
+ readonly contextWindow: "128k tokens";
277
+ readonly speed: "Fast";
278
+ readonly quality: "High";
279
+ };
280
+ readonly "kimi-k2.6": {
281
+ readonly name: "Kimi K2.6 Pro";
282
+ readonly description: "Modelo híbrido da Moonshot com modo de raciocínio (thinking) ativado por padrão.\nMelhor capacidade da família K2 para tarefas complexas.";
283
+ readonly icon: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').SvgIconTypeMap<{}, "svg">> & {
284
+ muiName: string;
285
+ };
286
+ readonly contextWindow: "256k tokens";
287
+ readonly speed: "Moderate";
288
+ readonly quality: "Highest";
289
+ };
290
+ readonly "kimi-k2-turbo-preview": {
291
+ readonly name: "Kimi K2 Turbo";
292
+ readonly description: "Variante rápida (não-thinking) da Moonshot.\nÓtima relação velocidade/qualidade para uso geral.";
293
+ readonly icon: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').SvgIconTypeMap<{}, "svg">> & {
294
+ muiName: string;
295
+ };
296
+ readonly contextWindow: "256k tokens";
297
+ readonly speed: "Fast";
298
+ readonly quality: "High";
299
+ };
300
+ readonly "qwen3.6-plus": {
301
+ readonly name: "Qwen 3.6 Plus - Alibaba";
302
+ readonly description: "Multimodal nativo, context window - 1 milhão de tokens, codificação agentiva";
303
+ readonly icon: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').SvgIconTypeMap<{}, "svg">> & {
304
+ muiName: string;
305
+ };
306
+ readonly contextWindow: "1 milhão";
307
+ readonly speed: "Moderate";
308
+ readonly quality: "Highest";
309
+ };
310
+ readonly "qwen3.7-max": {
311
+ readonly name: "Qwen 3.7 Max - Alibaba";
312
+ readonly description: "Multimodal nativo, context window - 1 milhão de tokens, codificação agentiva";
313
+ readonly icon: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').SvgIconTypeMap<{}, "svg">> & {
314
+ muiName: string;
315
+ };
316
+ readonly contextWindow: "1 milhão";
317
+ readonly speed: "Moderate";
318
+ readonly quality: "Highest";
319
+ };
320
+ readonly uiToolShowcase: {
321
+ readonly name: "UiToolShowcase - Testing";
322
+ readonly description: "Cria um stream de testes.";
323
+ readonly icon: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').SvgIconTypeMap<{}, "svg">> & {
324
+ muiName: string;
325
+ };
326
+ readonly contextWindow: "256k tokens";
327
+ readonly speed: "Fast";
328
+ readonly quality: "High";
329
+ };
330
+ };
331
+ export type ModelVendor = 'Google' | 'Anthropic' | 'OpenAI' | 'ZhiPu' | 'Moonshot' | 'DeepSeek' | 'Unknown';
332
+ export declare function getModelVendor(modelId: string | undefined): ModelVendor;
333
+ export declare const getConnectionStateColor: (connectionState: ConnectionState, theme: Theme) => string;
@@ -0,0 +1,36 @@
1
+ export type { Interaction, MergeResult, TurnOpenCloseDetails } from './Interaction';
2
+ export type { InteractionPart } from './InteractionPart';
3
+ export { InteractionPartUtils } from './InteractionPart';
4
+ export type { ChatSession } from './ChatSession';
5
+ export { ChatSessionUtils } from './ChatSession';
6
+ export { ClientMessage } from './ClientMessage';
7
+ export { ClientMessage as ClientMessageClass } from './ClientMessage';
8
+ export type { ClientMessageImage } from './ClientMessage';
9
+ export type { AgentContext, User, AuthState } from './contexts';
10
+ export { Account } from './contexts';
11
+ export type { Agent, AgentSummary } from './Agent';
12
+ export { AgentKind } from './Agent';
13
+ export type { AgentKind as AgentKindType } from './Agent';
14
+ export type { Customer, CustomerApiResponse } from './Customer';
15
+ export { ConnectionState } from './connectionState';
16
+ export type { IDBStorable } from './IDBStorable';
17
+ export type { IEbiContextData } from './IAbiContext';
18
+ export * from './enums';
19
+ export type { Artifact } from './Artifact';
20
+ export type { ArtifactData, Section } from './ArtifactData';
21
+ export type { TodoList, TodoItem, TodoItemStatus } from './todoListModel';
22
+ export type { SubAgentDto, SubAgentMessage, SubAgentStatus } from './subAgentModel';
23
+ export { isSubAgentTerminalStatus, SUB_AGENT_TERMINAL_STATUSES } from './subAgentModel';
24
+ export type { SendMessageResponse, StartStreamResponse, ServerSendMessageResponse } from './SendMessageResponse';
25
+ export type { Prompt as PromptModel } from './Prompt';
26
+ export { PromptUtils } from './Prompt';
27
+ export type { EndMessageData } from './EndMessageData';
28
+ export type { LlmSession, LlmCreateSessionResponse } from './LlmSession';
29
+ export type { ServerResponse } from './serverReponse';
30
+ export type { BasicNotification, EnvironmentNotification } from './Notification';
31
+ export { MemoryContexts, MemoryContextLabels } from './Memory';
32
+ export type { SemanticMemory, SemanticMemoryInput, SemanticMemorySearchOptions } from './Memory';
33
+ export type { FunctionDetails, ThoughtDetails, TextDetails, ErrorDetails, ToolEventDetails, ExecutableCodeDetails, CodeExecutionResultDetails, } from './ServerEvent';
34
+ export { ServerEvent } from './ServerEvent';
35
+ export { deserializeEvent, deserializePayload, serializeEvent, createEventSerializer, createStreamingResponseSerializer, sanitizeJsonString, } from './semanticKernelModel/serializer';
36
+ export { LlmEvent, StreamingResponse, TextContent, FunctionCallContent, FunctionResultContent, ChatMessageContent, StreamingTextContent, StreamingReasoningContent, StreamingFunctionCallUpdateContent, } from './semanticKernelModel/models';
@@ -0,0 +1,2 @@
1
+ export { LlmEvent as Event, StreamingResponse, StreamingResponse as Payload, KernelContent, StreamingKernelContent, TextContent, ImageContent, FunctionCallContent, FunctionResultContent, ChatMessageContent, StreamingTextContent, StreamingFunctionCallUpdateContent, EventTypeInformation, LlmArtifact, type InteractionStatistics, SessionInformation, InstructionSummary, AuthorRole, Commands } from './models';
2
+ export { dotNetTypeEmitter, createEventSerializer, createKernelContentSerializer, createStreamingKernelContentSerializer, createStreamingResponseSerializer, createStreamingResponseSerializer as createPayloadSerializer, deserializeEvent, deserializePayload, serializeEvent, sanitizeJsonString } from './serializer';
@@ -0,0 +1 @@
1
+ export declare const REFLECT_METADATA_LOADED = true;
@@ -0,0 +1,208 @@
1
+ import { Artifact } from '../../models/Artifact';
2
+ export type PartType = 'ToolEventContent' | 'StreamingToolEventContent' | 'TextContent' | 'StreamingFinalFunctionCallContent' | 'StreamingFinalFunctionResultContent' | 'StreamingReasoningContent' | 'ImageContent' | 'FunctionCallContent' | 'FunctionResultContent' | 'FunctionClientOutputContent' | 'UserUiContent' | 'ChatMessageContent' | 'StreamingTextContent' | 'StreamingFunctionCallUpdateContent' | 'Unknown';
3
+ export declare const PartType: {
4
+ readonly TextContent: "TextContent";
5
+ readonly ToolEventContent: "ToolEventContent";
6
+ readonly StreamingToolEventContent: "StreamingToolEventContent";
7
+ readonly StreamingReasoningContent: "StreamingReasoningContent";
8
+ readonly ImageContent: "ImageContent";
9
+ readonly FunctionCallContent: "FunctionCallContent";
10
+ readonly FunctionResultContent: "FunctionResultContent";
11
+ readonly FunctionClientOutputContent: "FunctionClientOutputContent";
12
+ readonly UserUiContent: "UserUiContent";
13
+ readonly ChatMessageContent: "ChatMessageContent";
14
+ readonly StreamingTextContent: "StreamingTextContent";
15
+ readonly StreamingFunctionCallUpdateContent: "StreamingFunctionCallUpdateContent";
16
+ readonly StreamingFinalFunctionCallContent: "StreamingFinalFunctionCallContent";
17
+ readonly StreamingFinalFunctionResultContent: "StreamingFinalFunctionResultContent";
18
+ };
19
+ export declare class AuthorRole {
20
+ label?: string;
21
+ }
22
+ export declare enum Commands {
23
+ OpenStream = "OpenStream",
24
+ CloseStream = "CloseStream",
25
+ Ignore = "Ignore"
26
+ }
27
+ export declare class EventTypeInformation {
28
+ type?: string;
29
+ fullName?: string;
30
+ }
31
+ export declare class LlmArtifact {
32
+ id: string;
33
+ name?: string;
34
+ mimeType?: string;
35
+ description?: string;
36
+ toArtifact(): Artifact;
37
+ }
38
+ export declare abstract class KernelContent {
39
+ mimeType?: string;
40
+ innerContent?: any;
41
+ modelId?: string;
42
+ metadata?: Record<string, any> | null;
43
+ }
44
+ export declare abstract class StreamingKernelContent {
45
+ choiceIndex: number;
46
+ innerContent?: any;
47
+ modelId?: string;
48
+ metadata?: Record<string, any>;
49
+ }
50
+ export declare class TextContent extends KernelContent {
51
+ text?: string;
52
+ encoding?: string;
53
+ constructor();
54
+ toString(): string;
55
+ }
56
+ export declare class StreamingToolEventContent extends StreamingKernelContent {
57
+ eventName?: string;
58
+ eventData?: string;
59
+ sessionId?: string;
60
+ constructor();
61
+ }
62
+ export declare class ToolEventContent extends KernelContent {
63
+ eventName?: string;
64
+ eventData?: string;
65
+ sessionId?: string;
66
+ constructor();
67
+ }
68
+ export declare class ImageContent extends KernelContent {
69
+ url?: string;
70
+ dataUri?: string;
71
+ }
72
+ export declare class FunctionCallContent extends KernelContent {
73
+ id?: string;
74
+ pluginName?: string;
75
+ functionName: string;
76
+ arguments?: any;
77
+ exception?: Error;
78
+ }
79
+ export declare class StreamingFinalFunctionCallContent extends StreamingKernelContent {
80
+ id?: string;
81
+ functionName?: string;
82
+ arguments?: string;
83
+ isUi?: boolean;
84
+ friendlyArgsDescription?: string;
85
+ }
86
+ export declare class FunctionResultContent extends KernelContent {
87
+ id?: string;
88
+ pluginName?: string;
89
+ functionName?: string;
90
+ result?: any;
91
+ }
92
+ export declare class StreamingFinalFunctionResultContent extends StreamingKernelContent {
93
+ id?: string;
94
+ pluginName?: string;
95
+ functionName?: string;
96
+ result?: any;
97
+ isUi?: boolean;
98
+ clientOutput?: string;
99
+ }
100
+ export declare class FunctionClientOutputContent extends KernelContent {
101
+ id?: string;
102
+ data?: string;
103
+ }
104
+ export declare class UserUiContent extends KernelContent {
105
+ name?: string;
106
+ args?: string;
107
+ }
108
+ export declare class ChatMessageContent extends KernelContent {
109
+ role?: AuthorRole;
110
+ items?: KernelContent[];
111
+ }
112
+ export declare class StreamingFunctionCallUpdateContent extends StreamingKernelContent {
113
+ callId?: string;
114
+ name?: string;
115
+ arguments?: string;
116
+ functionCallIndex: number;
117
+ }
118
+ export declare class StreamingTextContent extends StreamingKernelContent {
119
+ text?: string;
120
+ encoding?: string;
121
+ }
122
+ export declare class StreamingReasoningContent extends StreamingKernelContent {
123
+ text?: string;
124
+ encoding?: string;
125
+ }
126
+ export declare class InstructionSummary {
127
+ instructionCategory: string;
128
+ description: string;
129
+ interactionId: string;
130
+ }
131
+ export declare class SessionInformation {
132
+ size: number;
133
+ originalSize: number;
134
+ ratio: number;
135
+ previousRatio: number;
136
+ threshold: number;
137
+ maxSize: number;
138
+ id?: string;
139
+ instructionSummaries?: InstructionSummary[];
140
+ }
141
+ export declare class LlmEvent {
142
+ timestamp: number;
143
+ mimeType: string;
144
+ partial: boolean;
145
+ turnComplete: boolean;
146
+ visible: boolean;
147
+ serverError?: string;
148
+ interactionId: string;
149
+ sessionInformation?: SessionInformation;
150
+ eventType?: EventTypeInformation;
151
+ artifactsGenerated: LlmArtifact[];
152
+ author?: string;
153
+ role?: AuthorRole;
154
+ command?: Commands;
155
+ content?: ChatMessageContent;
156
+ streamingParts?: StreamingKernelContent[];
157
+ subAgentId?: string;
158
+ subAgentName?: string;
159
+ text?: string;
160
+ }
161
+ export declare class PartialLlmEvent {
162
+ timeStamp?: number;
163
+ partialText?: string;
164
+ partialReasoning?: string;
165
+ functionName?: string;
166
+ streamingParts?: StreamingKernelContent[];
167
+ functionCallId?: string;
168
+ type?: string;
169
+ iteractionId?: string;
170
+ partialEventType?: EventTypeInformation;
171
+ subAgentId?: string;
172
+ }
173
+ export declare class StreamingResponse {
174
+ type: string;
175
+ event?: LlmEvent;
176
+ sessionId?: string;
177
+ /**
178
+ * Optional. Server piggybacks a freshly minted JWT on the next few Pong frames
179
+ * after a WS upgrade where it auto-refreshed the token (inbound was expired or
180
+ * near expiry). The client mirrors this into the stored user record so the
181
+ * global fetch interceptor stops sending the stale token.
182
+ */
183
+ accessToken?: string;
184
+ partialEvent?: PartialLlmEvent;
185
+ subAgentId?: string;
186
+ subAgentName?: string;
187
+ /**
188
+ * Server-assigned monotonic sequence number for events emitted by an InteractionRun.
189
+ * Tracked client-side as `lastSeq` so reconnects can resume mid-stream via
190
+ * `?lastSeq=N` on the WebSocket URL. Absent on control messages (Pong / Suspended)
191
+ * and on RewindLost notices that carry the new starting seq directly.
192
+ */
193
+ seq?: number;
194
+ }
195
+ export declare class Payload {
196
+ events: LlmEvent[];
197
+ }
198
+ export interface InteractionStatistics {
199
+ eventCount: number;
200
+ unknonwCount: number;
201
+ unparsedCount: number;
202
+ totalTransfered: number;
203
+ buffer: string[];
204
+ startTime: Date;
205
+ elapsed: number;
206
+ tokensPerSecond: number;
207
+ sessionInformation?: SessionInformation;
208
+ }
@@ -0,0 +1,40 @@
1
+ import { TypedJSON, IndexedObject, JsonObjectMetadata } from 'typedjson';
2
+ import { LlmEvent, KernelContent, StreamingKernelContent, StreamingResponse, Payload } from './models';
3
+ /**
4
+ * Custom type emitter for .NET compatibility
5
+ * Emits "$type" property for polymorphic types to match .NET serialization
6
+ */
7
+ export declare function dotNetTypeEmitter(targetObject: IndexedObject, sourceObject: IndexedObject, expectedSourceType: Function, sourceTypeMetadata?: JsonObjectMetadata): void;
8
+ export declare function dotnetTypeResolver(sourceObject: IndexedObject, knownTypes: Map<string, Function>): Function | undefined;
9
+ /**
10
+ * Creates a configured TypedJSON serializer for Event objects
11
+ * Includes all known types for polymorphic serialization
12
+ */
13
+ export declare function createEventSerializer(): TypedJSON<LlmEvent>;
14
+ export declare function createPayloadSerializer(): TypedJSON<Payload>;
15
+ export declare function createStreamingResponseSerializer(): TypedJSON<StreamingResponse>;
16
+ /**
17
+ * Sanitizes JSON string by fixing control characters that may come from .NET serialization
18
+ * This handles cases where newlines, tabs, and other control characters are not properly escaped
19
+ */
20
+ export declare function sanitizeJsonString(jsonStr: string): string;
21
+ /**
22
+ * Deserializes a JSON string into a Payload, with automatic sanitization of control characters
23
+ */
24
+ export declare function deserializePayload(json: string): StreamingResponse | undefined;
25
+ /**
26
+ * Deserializes a JSON string into an Event object, with automatic sanitization of control characters
27
+ */
28
+ export declare function deserializeEvent(json: string): LlmEvent | undefined;
29
+ /**
30
+ * Serializes an Event object into a JSON string
31
+ */
32
+ export declare function serializeEvent(event: LlmEvent): string;
33
+ /**
34
+ * Creates a configured TypedJSON serializer for KernelContent objects
35
+ */
36
+ export declare function createKernelContentSerializer(): TypedJSON<KernelContent>;
37
+ /**
38
+ * Creates a configured TypedJSON serializer for StreamingKernelContent objects
39
+ */
40
+ export declare function createStreamingKernelContentSerializer(): TypedJSON<StreamingKernelContent>;
@@ -0,0 +1,5 @@
1
+ export interface ServerResponse<T> {
2
+ status: 'success' | 'error';
3
+ data?: T;
4
+ message: string;
5
+ }