agent-configs 1.0.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 (85) hide show
  1. package/README.md +223 -0
  2. package/agents/architect.md +211 -0
  3. package/agents/code-reviewer.md +104 -0
  4. package/agents/planner.md +119 -0
  5. package/agents/refactor-cleaner.md +306 -0
  6. package/agents/security-reviewer.md +545 -0
  7. package/agents/tdd-guide.md +280 -0
  8. package/bundles/bk-chat-bundle/README.md +48 -0
  9. package/bundles/bk-chat-bundle/manifest.json +10 -0
  10. package/bundles/continuous-learning/.claude/commands/evolve.md +190 -0
  11. package/bundles/continuous-learning/.claude/commands/instinct-status.md +64 -0
  12. package/bundles/continuous-learning/.claude/commands/learn.md +83 -0
  13. package/bundles/continuous-learning/.claude/hooks/learning-end.js +85 -0
  14. package/bundles/continuous-learning/.claude/hooks/observe.js +131 -0
  15. package/bundles/continuous-learning/.claude/lib/learning.js +559 -0
  16. package/bundles/continuous-learning/.claude/lib/utils.js +312 -0
  17. package/bundles/continuous-learning/.claude/skills/continuous-learning/SKILL.md +200 -0
  18. package/bundles/continuous-learning/.cursor/hooks/learning-end.js +102 -0
  19. package/bundles/continuous-learning/.cursor/rules/continuous-learning.mdc +34 -0
  20. package/bundles/continuous-learning/.cursor/skills/continuous-learning/SKILL.md +77 -0
  21. package/bundles/continuous-learning/README.md +159 -0
  22. package/bundles/continuous-learning/manifest.json +51 -0
  23. package/bundles/planning-bundle/README.md +34 -0
  24. package/bundles/planning-bundle/manifest.json +10 -0
  25. package/bundles/review-bundle/README.md +43 -0
  26. package/bundles/review-bundle/manifest.json +11 -0
  27. package/bundles/shared-memory/.claude/commands/list-sessions.md +124 -0
  28. package/bundles/shared-memory/.claude/commands/load-session.md +169 -0
  29. package/bundles/shared-memory/.claude/commands/save-session.md +137 -0
  30. package/bundles/shared-memory/.claude/hooks/memory-compact.js +43 -0
  31. package/bundles/shared-memory/.claude/hooks/memory-end.js +42 -0
  32. package/bundles/shared-memory/.claude/hooks/memory-start.js +59 -0
  33. package/bundles/shared-memory/.claude/lib/memory.js +416 -0
  34. package/bundles/shared-memory/.claude/lib/utils.js +209 -0
  35. package/bundles/shared-memory/.claude/skills/shared-memory/SKILL.md +183 -0
  36. package/bundles/shared-memory/.cursor/hooks/memory-start.js +42 -0
  37. package/bundles/shared-memory/.cursor/rules/shared-memory.mdc +37 -0
  38. package/bundles/shared-memory/.cursor/skills/shared-memory/SKILL.md +183 -0
  39. package/bundles/tdd-bundle/README.md +33 -0
  40. package/bundles/tdd-bundle/manifest.json +10 -0
  41. package/cli.js +978 -0
  42. package/commands/build-fix.md +29 -0
  43. package/commands/code-review.md +40 -0
  44. package/commands/e2e.md +363 -0
  45. package/commands/learn.md +114 -0
  46. package/commands/plan.md +113 -0
  47. package/commands/refactor-clean.md +28 -0
  48. package/commands/tdd.md +326 -0
  49. package/commands/test-coverage.md +27 -0
  50. package/commands/update-codemaps.md +17 -0
  51. package/commands/update-docs.md +31 -0
  52. package/configs.json +158 -0
  53. package/hooks/hooks.json +101 -0
  54. package/package.json +58 -0
  55. package/rules/agents.md +49 -0
  56. package/rules/coding-style.md +70 -0
  57. package/rules/git-workflow.md +45 -0
  58. package/rules/hooks.md +46 -0
  59. package/rules/patterns.md +55 -0
  60. package/rules/performance.md +47 -0
  61. package/rules/security.md +36 -0
  62. package/rules/testing.md +30 -0
  63. package/skills/ai-config-architect/SKILL.md +59 -0
  64. package/skills/ai-config-architect/references/agents.md +77 -0
  65. package/skills/ai-config-architect/references/commands.md +66 -0
  66. package/skills/ai-config-architect/references/hooks.md +70 -0
  67. package/skills/ai-config-architect/references/patterns.md +66 -0
  68. package/skills/ai-config-architect/references/platforms.md +82 -0
  69. package/skills/ai-config-architect/references/rules.md +66 -0
  70. package/skills/ai-config-architect/references/skills.md +67 -0
  71. package/skills/bk-chat-helper/SKILL.md +398 -0
  72. package/skills/bk-chat-helper/references/api-reference.md +606 -0
  73. package/skills/bk-chat-helper/references/examples.md +789 -0
  74. package/skills/bk-chat-helper/references/integration-guide.md +583 -0
  75. package/skills/bk-chat-x/SKILL.md +400 -0
  76. package/skills/bk-chat-x/references/components-api.md +340 -0
  77. package/skills/bk-chat-x/references/examples.md +386 -0
  78. package/skills/bk-chat-x/references/shortcuts-guide.md +375 -0
  79. package/skills/coding-standards/SKILL.md +523 -0
  80. package/skills/security-review/SKILL.md +497 -0
  81. package/skills/security-review/references/cloud-infrastructure-security.md +361 -0
  82. package/skills/strategic-compact/SKILL.md +66 -0
  83. package/skills/strategic-compact/scripts/suggest-compact.sh +52 -0
  84. package/skills/tdd-workflow/SKILL.md +412 -0
  85. package/skills/verification-loop/SKILL.md +128 -0
@@ -0,0 +1,606 @@
1
+ # API 详细参考
2
+
3
+ ## useChatHelper 配置
4
+
5
+ ### 完整配置类型
6
+
7
+ ```typescript
8
+ interface IUseChatHelperOptions {
9
+ // 必需:请求配置
10
+ requestData: {
11
+ urlPrefix: string; // API 基础路径
12
+ headers?: (() => Record<string, string>) | Record<string, string>;
13
+ data?: (() => Record<string, unknown>) | Record<string, unknown>;
14
+ };
15
+
16
+ // 可选:请求/响应拦截器
17
+ interceptors?: {
18
+ request?: (config: IRequestConfig) => IRequestConfig;
19
+ response?: (response: IResponse) => IResponse;
20
+ };
21
+
22
+ // 可选:自定义协议
23
+ protocol?: ISSEProtocol;
24
+ }
25
+ ```
26
+
27
+ ### 返回值类型
28
+
29
+ ```typescript
30
+ interface IChatHelper {
31
+ agent: IAgentModule;
32
+ session: ISessionModule;
33
+ message: IMessageModule;
34
+ http: IHttpModule;
35
+ reset: (options: IUseChatHelperOptions) => void;
36
+ }
37
+ ```
38
+
39
+ ---
40
+
41
+ ## Agent 模块
42
+
43
+ ### 响应式数据
44
+
45
+ | 属性 | 类型 | 说明 |
46
+ |------|------|------|
47
+ | `info` | `Ref<IAgentInfo \| null>` | Agent 信息 |
48
+ | `isInfoLoading` | `Ref<boolean>` | 获取信息加载状态 |
49
+ | `isChatting` | `Ref<boolean>` | 是否正在聊天 |
50
+
51
+ ### 方法
52
+
53
+ #### getAgentInfo()
54
+
55
+ 获取 Agent 信息(名称、开场白、预设问题等)。
56
+
57
+ ```typescript
58
+ await agent.getAgentInfo();
59
+
60
+ // 使用
61
+ console.log(agent.info.value?.agentName);
62
+ console.log(agent.info.value?.conversationSettings?.openingRemark);
63
+ console.log(agent.info.value?.conversationSettings?.predefinedQuestions);
64
+ ```
65
+
66
+ #### chat(userInput, sessionCode, url?, config?, property?)
67
+
68
+ 发送消息并开始流式对话。
69
+
70
+ ```typescript
71
+ // 基础用法
72
+ await agent.chat('你好', 'session_123');
73
+
74
+ // 自定义 URL
75
+ await agent.chat('你好', 'session_123', 'custom_chat/');
76
+
77
+ // 自定义请求配置
78
+ await agent.chat('你好', 'session_123', undefined, {
79
+ data: { temperature: 0.7, max_tokens: 2000 },
80
+ headers: { 'X-Custom-Header': 'value' },
81
+ });
82
+
83
+ // 带消息属性(引用、快捷键等)
84
+ await agent.chat('解释这段话', 'session_123', undefined, undefined, {
85
+ extra: {
86
+ cite: '这是引用的文本内容',
87
+ command: 'translate',
88
+ },
89
+ });
90
+ ```
91
+
92
+ **参数说明**:
93
+
94
+ | 参数 | 类型 | 必需 | 说明 |
95
+ |------|------|------|------|
96
+ | `userInput` | `string` | 是 | 用户输入内容 |
97
+ | `sessionCode` | `string` | 是 | 会话代码 |
98
+ | `url` | `string` | 否 | 自定义接口地址,默认 `'chat_completion/'` |
99
+ | `config` | `IRequestConfig` | 否 | 额外请求配置 |
100
+ | `property` | `IMessageProperty` | 否 | 消息属性 |
101
+
102
+ #### stopChat()
103
+
104
+ 停止当前聊天流式响应。
105
+
106
+ ```typescript
107
+ agent.stopChat();
108
+ ```
109
+
110
+ #### resumeStreamingChat(sessionCode, url?, config?)
111
+
112
+ 恢复流式聊天(用于页面刷新后继续接收响应)。
113
+
114
+ ```typescript
115
+ // 如果最后一条消息处于流式传输中,重新建立连接
116
+ agent.resumeStreamingChat(sessionCode);
117
+ ```
118
+
119
+ ---
120
+
121
+ ## Session 模块
122
+
123
+ ### 响应式数据
124
+
125
+ | 属性 | 类型 | 说明 |
126
+ |------|------|------|
127
+ | `list` | `Ref<ISession[]>` | 会话列表 |
128
+ | `current` | `Ref<ISession \| null>` | 当前会话 |
129
+ | `isListLoading` | `Ref<boolean>` | 列表加载状态 |
130
+ | `isCurrentLoading` | `Ref<boolean>` | 当前会话加载状态 |
131
+ | `isCreateLoading` | `Ref<boolean>` | 创建加载状态 |
132
+ | `isUpdateLoading` | `Ref<boolean>` | 更新加载状态 |
133
+ | `isDeleteLoading` | `Ref<boolean>` | 删除加载状态 |
134
+ | `isRenameLoading` | `Ref<boolean>` | 重命名加载状态 |
135
+
136
+ ### 方法
137
+
138
+ #### getSessions()
139
+
140
+ 获取会话列表。
141
+
142
+ ```typescript
143
+ await session.getSessions();
144
+ console.log(session.list.value);
145
+ ```
146
+
147
+ #### chooseSession(sessionCode)
148
+
149
+ 选择会话。会自动:
150
+ 1. 停止当前聊天
151
+ 2. 设置 `current`
152
+ 3. 加载该会话的消息
153
+ 4. 如果最后一条消息是流式状态,恢复聊天
154
+
155
+ ```typescript
156
+ await session.chooseSession('session_123');
157
+ ```
158
+
159
+ #### getSession(sessionCode)
160
+
161
+ 获取单个会话详情。
162
+
163
+ ```typescript
164
+ await session.getSession('session_123');
165
+ console.log(session.current.value);
166
+ ```
167
+
168
+ #### createSession(session)
169
+
170
+ 创建新会话。
171
+
172
+ ```typescript
173
+ await session.createSession({
174
+ sessionCode: `session_${Date.now()}`,
175
+ sessionName: '新会话',
176
+ isTemporary: false,
177
+ model: 'gpt-4',
178
+ });
179
+ ```
180
+
181
+ #### updateSession(session)
182
+
183
+ 更新会话信息。
184
+
185
+ ```typescript
186
+ await session.updateSession({
187
+ sessionCode: 'session_123',
188
+ sessionName: '更新后的名称',
189
+ });
190
+ ```
191
+
192
+ #### deleteSession(sessionCode)
193
+
194
+ 删除会话。如果删除的是当前会话,会自动切换到第一个会话。
195
+
196
+ ```typescript
197
+ await session.deleteSession('session_123');
198
+ ```
199
+
200
+ #### renameSession(sessionCode)
201
+
202
+ AI 智能重命名会话。
203
+
204
+ ```typescript
205
+ await session.renameSession('session_123');
206
+ ```
207
+
208
+ #### postSessionFeedback(feedback)
209
+
210
+ 提交会话反馈(点赞/点踩)。
211
+
212
+ ```typescript
213
+ await session.postSessionFeedback({
214
+ sessionCode: 'session_123',
215
+ rate: 1, // 1=点赞, -1=点踩
216
+ labels: ['回答准确', '信息全面'],
217
+ comment: '很有帮助',
218
+ sessionContentIds: [1, 2], // user message 的 ID
219
+ });
220
+ ```
221
+
222
+ #### getSessionFeedbackReasons(rate)
223
+
224
+ 获取反馈原因列表。
225
+
226
+ ```typescript
227
+ const reasons = await session.getSessionFeedbackReasons(1); // 点赞原因
228
+ const reasons = await session.getSessionFeedbackReasons(-1); // 点踩原因
229
+ ```
230
+
231
+ ---
232
+
233
+ ## Message 模块
234
+
235
+ ### 响应式数据
236
+
237
+ | 属性 | 类型 | 说明 |
238
+ |------|------|------|
239
+ | `list` | `Ref<IMessage[]>` | 消息列表 |
240
+ | `isListLoading` | `Ref<boolean>` | 列表加载状态 |
241
+ | `isDeleteLoading` | `Ref<boolean>` | 删除加载状态 |
242
+
243
+ ### 方法
244
+
245
+ #### getMessages(sessionCode)
246
+
247
+ 获取会话消息列表。
248
+
249
+ ```typescript
250
+ await message.getMessages('session_123');
251
+ ```
252
+
253
+ #### plusMessage(message)
254
+
255
+ 本地添加消息(不调用接口)。
256
+
257
+ ```typescript
258
+ message.plusMessage({
259
+ role: MessageRole.User,
260
+ content: '你好',
261
+ status: MessageStatus.Complete,
262
+ });
263
+ ```
264
+
265
+ #### createAndPlusMessage(message)
266
+
267
+ 创建消息(调用接口)并添加到列表。
268
+
269
+ ```typescript
270
+ await message.createAndPlusMessage({
271
+ role: MessageRole.User,
272
+ content: '你好',
273
+ status: MessageStatus.Complete,
274
+ sessionCode: 'session_123',
275
+ });
276
+ ```
277
+
278
+ #### modifyMessage(message)
279
+
280
+ 本地修改消息。
281
+
282
+ ```typescript
283
+ const msg = message.getMessageByMessageId('msg_123');
284
+ if (msg) {
285
+ msg.content = '修改后的内容';
286
+ message.modifyMessage(msg);
287
+ }
288
+ ```
289
+
290
+ #### deleteMessages(messages)
291
+
292
+ 批量删除消息。
293
+
294
+ ```typescript
295
+ const messagesToDelete = [msg1, msg2, msg3];
296
+ await message.deleteMessages(messagesToDelete);
297
+ ```
298
+
299
+ #### getCurrentLoadingMessage()
300
+
301
+ 获取当前加载中的消息(状态为 Pending 或 Streaming)。
302
+
303
+ ```typescript
304
+ const loadingMsg = message.getCurrentLoadingMessage();
305
+ if (loadingMsg) {
306
+ console.log('正在响应中:', loadingMsg.content);
307
+ }
308
+ ```
309
+
310
+ #### getMessageByMessageId(id)
311
+
312
+ 根据 ID 查找消息。
313
+
314
+ ```typescript
315
+ const msg = message.getMessageByMessageId('msg_123');
316
+ ```
317
+
318
+ ---
319
+
320
+ ## ISession 类型
321
+
322
+ ```typescript
323
+ interface ISession<ITool = unknown, IAnchorPathResources = unknown> {
324
+ sessionCode: string; // 会话代码(唯一标识)
325
+ sessionName: string; // 会话名称
326
+ isTemporary?: boolean; // 是否临时会话
327
+ model?: string; // 使用的模型
328
+ createdAt?: string; // 创建时间
329
+ updatedAt?: string; // 更新时间
330
+ tools?: ITool[]; // 可用工具
331
+ rate?: number; // 评分
332
+ labels?: string[]; // 标签
333
+ comment?: string; // 评论
334
+ anchorPathResources?: IAnchorPathResources; // 锚点资源
335
+ roleInfo?: { // 角色信息
336
+ collectionId: number;
337
+ collectionName: string;
338
+ content: IMessage[];
339
+ variables: { name: string; value: string | IMessage[]; }[];
340
+ };
341
+ sessionProperty?: { // 会话属性
342
+ isAutoCalcPrompt?: boolean;
343
+ isAutoClear?: boolean;
344
+ };
345
+ }
346
+ ```
347
+
348
+ ---
349
+
350
+ ## IMessage 类型
351
+
352
+ ### 用户消息
353
+
354
+ ```typescript
355
+ interface IUserMessage {
356
+ id?: string;
357
+ messageId?: string;
358
+ role: MessageRole.User;
359
+ status: MessageStatus;
360
+ content: string | IInputContent[]; // 文本或多媒体
361
+ property?: IMessageProperty; // 引用、快捷键等
362
+ }
363
+ ```
364
+
365
+ ### AI 助手消息
366
+
367
+ ```typescript
368
+ interface IAssistantMessage {
369
+ id?: string;
370
+ messageId?: string;
371
+ role: MessageRole.Assistant;
372
+ status: MessageStatus;
373
+ content?: string;
374
+ toolCalls?: IToolCall[]; // 工具调用
375
+ }
376
+ ```
377
+
378
+ ### 推理消息
379
+
380
+ ```typescript
381
+ interface IReasoningMessage {
382
+ id?: string;
383
+ messageId?: string;
384
+ role: MessageRole.Reasoning;
385
+ status: MessageStatus;
386
+ content: string[]; // 思考步骤数组
387
+ duration?: number; // 思考耗时 (ms)
388
+ }
389
+ ```
390
+
391
+ ### 工具消息
392
+
393
+ ```typescript
394
+ interface IToolMessage {
395
+ id?: string;
396
+ messageId?: string;
397
+ role: MessageRole.Tool;
398
+ status: MessageStatus;
399
+ content: string; // 工具执行结果
400
+ toolCallId: string; // 对应的工具调用 ID
401
+ duration?: number; // 执行耗时 (ms)
402
+ error?: string; // 错误信息
403
+ }
404
+ ```
405
+
406
+ ### 活动消息
407
+
408
+ ```typescript
409
+ interface IActivityMessage {
410
+ id?: string;
411
+ messageId?: string;
412
+ role: MessageRole.Activity;
413
+ status: MessageStatus;
414
+ activityType: ActivityType; // 活动类型
415
+ content: IActivityContent; // 活动内容
416
+ }
417
+
418
+ // 活动内容(如引用文档)
419
+ type IActivityContent = Array<{
420
+ name: string;
421
+ url: string;
422
+ originFileUrl?: string;
423
+ }>;
424
+ ```
425
+
426
+ ---
427
+
428
+ ## IAgentInfo 类型
429
+
430
+ ```typescript
431
+ interface IAgentInfo {
432
+ agentName?: string; // Agent 名称
433
+ saasUrl?: string; // SaaS 地址
434
+ chatGroup?: { // 聊天群组配置
435
+ enabled: boolean;
436
+ staff: string[];
437
+ username: string;
438
+ };
439
+ conversationSettings?: { // 会话设置
440
+ enableChatSession?: boolean;
441
+ openingRemark?: string; // 开场白
442
+ predefinedQuestions?: string[]; // 预设问题
443
+ commands?: IAgentCommand[]; // 快捷指令
444
+ };
445
+ promptSetting?: { // Prompt 设置
446
+ content?: IMessage[];
447
+ };
448
+ }
449
+ ```
450
+
451
+ ---
452
+
453
+ ## IToolCall 类型
454
+
455
+ ```typescript
456
+ interface IToolCall {
457
+ id: string;
458
+ type: MessageType.Function;
459
+ function: {
460
+ name: string; // 工具名称
461
+ arguments: string; // 参数 JSON 字符串
462
+ description?: string; // 工具描述
463
+ mcpName?: string; // MCP 服务名称
464
+ };
465
+ }
466
+ ```
467
+
468
+ ---
469
+
470
+ ## IMessageProperty 类型
471
+
472
+ 用于传递引用内容或快捷键相关信息。
473
+
474
+ ```typescript
475
+ interface IMessageProperty {
476
+ [key: string]: unknown;
477
+ extra?: {
478
+ [key: string]: unknown;
479
+ cite?: string | { // 引用内容
480
+ title: string;
481
+ type: string;
482
+ data: Array<{ key: string; value: string; }>;
483
+ };
484
+ command?: string; // 快捷键命令
485
+ context?: Array<Record<string, unknown>>; // 上下文
486
+ };
487
+ }
488
+ ```
489
+
490
+ ---
491
+
492
+ ## IRequestConfig 类型
493
+
494
+ ```typescript
495
+ interface IRequestConfig {
496
+ url?: string;
497
+ method?: string;
498
+ baseURL?: string;
499
+ headers?: (() => Record<string, string>) | Record<string, string>;
500
+ data?: (() => unknown) | unknown;
501
+ params?: Record<string, unknown>;
502
+ timeout?: number;
503
+ responseType?: 'json' | 'text' | 'blob' | 'arrayBuffer' | 'formData' | 'stream';
504
+ credentials?: 'include' | 'omit' | 'same-origin';
505
+ mode?: 'cors' | 'no-cors' | 'same-origin';
506
+ controller?: AbortController;
507
+ transformRequest?: (data: unknown, headers?: Record<string, string>) => unknown;
508
+ transformResponse?: (data: unknown) => unknown;
509
+ validateStatus?: (status: number) => boolean;
510
+ }
511
+ ```
512
+
513
+ ---
514
+
515
+ ## 枚举类型
516
+
517
+ ### MessageRole
518
+
519
+ ```typescript
520
+ enum MessageRole {
521
+ User = 'user',
522
+ Assistant = 'assistant',
523
+ System = 'system',
524
+ Tool = 'tool',
525
+ Activity = 'activity',
526
+ Reasoning = 'reasoning',
527
+ Developer = 'developer',
528
+ Guide = 'guide',
529
+ Info = 'info',
530
+ Pause = 'pause',
531
+ Placeholder = 'placeholder',
532
+ Hidden = 'hidden',
533
+ HiddenUser = 'hidden-user',
534
+ HiddenAssistant = 'hidden-assistant',
535
+ HiddenSystem = 'hidden-system',
536
+ HiddenGuide = 'hidden-guide',
537
+ TemplateUser = 'template-user',
538
+ TemplateAssistant = 'template-assistant',
539
+ TemplateSystem = 'template-system',
540
+ TemplateGuide = 'template-guide',
541
+ TemplateHidden = 'template-hidden',
542
+ }
543
+ ```
544
+
545
+ ### MessageStatus
546
+
547
+ ```typescript
548
+ enum MessageStatus {
549
+ Pending = 'pending',
550
+ Streaming = 'streaming',
551
+ Complete = 'complete',
552
+ Error = 'error',
553
+ Stop = 'stop',
554
+ }
555
+ ```
556
+
557
+ ### MessageType
558
+
559
+ ```typescript
560
+ enum MessageType {
561
+ Text = 'text',
562
+ Binary = 'binary',
563
+ Function = 'function',
564
+ }
565
+ ```
566
+
567
+ ### ActivityType
568
+
569
+ ```typescript
570
+ enum ActivityType {
571
+ ReferenceDocument = 'reference_document',
572
+ }
573
+ ```
574
+
575
+ ### EventType
576
+
577
+ ```typescript
578
+ enum EventType {
579
+ RunStarted = 'RUN_STARTED',
580
+ RunFinished = 'RUN_FINISHED',
581
+ RunError = 'RUN_ERROR',
582
+ TextMessageStart = 'TEXT_MESSAGE_START',
583
+ TextMessageChunk = 'TEXT_MESSAGE_CHUNK',
584
+ TextMessageContent = 'TEXT_MESSAGE_CONTENT',
585
+ TextMessageEnd = 'TEXT_MESSAGE_END',
586
+ ThinkingStart = 'THINKING_START',
587
+ ThinkingTextMessageStart = 'THINKING_TEXT_MESSAGE_START',
588
+ ThinkingTextMessageContent = 'THINKING_TEXT_MESSAGE_CONTENT',
589
+ ThinkingTextMessageEnd = 'THINKING_TEXT_MESSAGE_END',
590
+ ThinkingEnd = 'THINKING_END',
591
+ ToolCallStart = 'TOOL_CALL_START',
592
+ ToolCallChunk = 'TOOL_CALL_CHUNK',
593
+ ToolCallArgs = 'TOOL_CALL_ARGS',
594
+ ToolCallResult = 'TOOL_CALL_RESULT',
595
+ ToolCallEnd = 'TOOL_CALL_END',
596
+ StepStarted = 'STEP_STARTED',
597
+ StepFinished = 'STEP_FINISHED',
598
+ MessagesSnapshot = 'MESSAGES_SNAPSHOT',
599
+ StateSnapshot = 'STATE_SNAPSHOT',
600
+ StateDelta = 'STATE_DELTA',
601
+ ActivitySnapshot = 'ACTIVITY_SNAPSHOT',
602
+ ActivityDelta = 'ACTIVITY_DELTA',
603
+ Raw = 'RAW',
604
+ Custom = 'CUSTOM',
605
+ }
606
+ ```