@linnlabs/linnkit 0.43.0 → 0.45.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.
- package/CHANGELOG.md +61 -0
- package/dist/cli.cjs +152 -6
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +152 -6
- package/dist/cli.js.map +1 -1
- package/dist/context-manager/profiles/agent/context/config.d.cts +1 -1
- package/dist/context-manager/profiles/agent/context/config.d.ts +1 -1
- package/dist/context-manager.cjs +37 -4
- package/dist/context-manager.cjs.map +1 -1
- package/dist/context-manager.js +37 -4
- package/dist/context-manager.js.map +1 -1
- package/dist/contracts/agentSpec.d.cts +5 -5
- package/dist/contracts/agentSpec.d.ts +5 -5
- package/dist/contracts/audit.d.cts +10 -10
- package/dist/contracts/audit.d.ts +10 -10
- package/dist/contracts/contextPolicy.d.cts +14 -14
- package/dist/contracts/contextPolicy.d.ts +14 -14
- package/dist/contracts/events.d.cts +121 -117
- package/dist/contracts/events.d.ts +121 -117
- package/dist/contracts/execution.d.cts +2 -2
- package/dist/contracts/execution.d.ts +2 -2
- package/dist/contracts/llm-retry.d.cts +2 -2
- package/dist/contracts/llm-retry.d.ts +2 -2
- package/dist/contracts/messages.d.cts +256 -32
- package/dist/contracts/messages.d.ts +256 -32
- package/dist/contracts/sse.d.cts +161 -97
- package/dist/contracts/sse.d.ts +161 -97
- package/dist/contracts/sub-run-trace-payload.d.cts +8 -8
- package/dist/contracts/sub-run-trace-payload.d.ts +8 -8
- package/dist/contracts/token-accounting.d.cts +12 -12
- package/dist/contracts/token-accounting.d.ts +12 -12
- package/dist/contracts.cjs +19 -2
- package/dist/contracts.cjs.map +1 -1
- package/dist/contracts.d.cts +1 -1
- package/dist/contracts.d.ts +1 -1
- package/dist/contracts.js +19 -3
- package/dist/contracts.js.map +1 -1
- package/dist/index.cjs +154 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +154 -6
- package/dist/index.js.map +1 -1
- package/dist/quickstart.cjs +152 -6
- package/dist/quickstart.cjs.map +1 -1
- package/dist/quickstart.js +152 -6
- package/dist/quickstart.js.map +1 -1
- package/dist/runtime-kernel/events/agentEvents.d.cts +2 -2
- package/dist/runtime-kernel/events/agentEvents.d.ts +2 -2
- package/dist/runtime-kernel/events.cjs +29 -2
- package/dist/runtime-kernel/events.cjs.map +1 -1
- package/dist/runtime-kernel/events.js +29 -2
- package/dist/runtime-kernel/events.js.map +1 -1
- package/dist/runtime-kernel/graph-engine/definitions/pendingUserInput.d.cts +27 -0
- package/dist/runtime-kernel/graph-engine/definitions/pendingUserInput.d.ts +27 -0
- package/dist/runtime-kernel/graph-engine/engine.d.cts +1 -1
- package/dist/runtime-kernel/graph-engine/engine.d.ts +1 -1
- package/dist/runtime-kernel/graph-engine/index.d.cts +1 -0
- package/dist/runtime-kernel/graph-engine/index.d.ts +1 -0
- package/dist/runtime-kernel/graph-engine/nodes/toolNode.d.cts +3 -0
- package/dist/runtime-kernel/graph-engine/nodes/toolNode.d.ts +3 -0
- package/dist/runtime-kernel/graph-engine/types.d.cts +3 -0
- package/dist/runtime-kernel/graph-engine/types.d.ts +3 -0
- package/dist/runtime-kernel.cjs +152 -6
- package/dist/runtime-kernel.cjs.map +1 -1
- package/dist/runtime-kernel.d.cts +1 -0
- package/dist/runtime-kernel.d.ts +1 -0
- package/dist/runtime-kernel.js +152 -6
- package/dist/runtime-kernel.js.map +1 -1
- package/dist/testkit/agent-harness/scriptedInferenceHarness.d.cts +24 -6
- package/dist/testkit/agent-harness/scriptedInferenceHarness.d.ts +24 -6
- package/dist/testkit/scenario/graphScenario.d.cts +89 -0
- package/dist/testkit/scenario/graphScenario.d.ts +89 -0
- package/dist/testkit/scenario/pendingUserInputQueue.d.cts +26 -0
- package/dist/testkit/scenario/pendingUserInputQueue.d.ts +26 -0
- package/dist/testkit/scenario/runtimeEventRecorder.d.cts +36 -0
- package/dist/testkit/scenario/runtimeEventRecorder.d.ts +36 -0
- package/dist/testkit/scenario/scriptedToolRuntime.d.cts +51 -0
- package/dist/testkit/scenario/scriptedToolRuntime.d.ts +51 -0
- package/dist/testkit/scenario/steeringInvariants.d.cts +33 -0
- package/dist/testkit/scenario/steeringInvariants.d.ts +33 -0
- package/dist/testkit/scenario/timeline.d.cts +27 -0
- package/dist/testkit/scenario/timeline.d.ts +27 -0
- package/dist/testkit.cjs +722 -19
- package/dist/testkit.cjs.map +1 -1
- package/dist/testkit.d.cts +7 -1
- package/dist/testkit.d.ts +7 -1
- package/dist/testkit.js +714 -20
- package/dist/testkit.js.map +1 -1
- package/docs/integration/README.md +1 -0
- package/docs/integration/mid-run-user-input.md +73 -0
- package/docs/integration/realtime.md +4 -0
- package/docs/integration/run-supervisor.md +1 -0
- package/docs/integration/testing.md +40 -4
- package/package.json +2 -2
|
@@ -11,8 +11,8 @@ declare const EventEnvelopeSchema: z.ZodObject<{
|
|
|
11
11
|
payload: z.ZodUnknown;
|
|
12
12
|
render_hint: z.ZodOptional<z.ZodObject<{
|
|
13
13
|
card: z.ZodOptional<z.ZodEnum<{
|
|
14
|
-
image: "image";
|
|
15
14
|
none: "none";
|
|
15
|
+
image: "image";
|
|
16
16
|
normal: "normal";
|
|
17
17
|
collapsible: "collapsible";
|
|
18
18
|
interactive: "interactive";
|
|
@@ -42,8 +42,8 @@ declare const EventEnvelope: z.ZodObject<{
|
|
|
42
42
|
payload: z.ZodUnknown;
|
|
43
43
|
render_hint: z.ZodOptional<z.ZodObject<{
|
|
44
44
|
card: z.ZodOptional<z.ZodEnum<{
|
|
45
|
-
image: "image";
|
|
46
45
|
none: "none";
|
|
46
|
+
image: "image";
|
|
47
47
|
normal: "normal";
|
|
48
48
|
collapsible: "collapsible";
|
|
49
49
|
interactive: "interactive";
|
|
@@ -11,8 +11,8 @@ declare const EventEnvelopeSchema: z.ZodObject<{
|
|
|
11
11
|
payload: z.ZodUnknown;
|
|
12
12
|
render_hint: z.ZodOptional<z.ZodObject<{
|
|
13
13
|
card: z.ZodOptional<z.ZodEnum<{
|
|
14
|
-
image: "image";
|
|
15
14
|
none: "none";
|
|
15
|
+
image: "image";
|
|
16
16
|
normal: "normal";
|
|
17
17
|
collapsible: "collapsible";
|
|
18
18
|
interactive: "interactive";
|
|
@@ -42,8 +42,8 @@ declare const EventEnvelope: z.ZodObject<{
|
|
|
42
42
|
payload: z.ZodUnknown;
|
|
43
43
|
render_hint: z.ZodOptional<z.ZodObject<{
|
|
44
44
|
card: z.ZodOptional<z.ZodEnum<{
|
|
45
|
-
image: "image";
|
|
46
45
|
none: "none";
|
|
46
|
+
image: "image";
|
|
47
47
|
normal: "normal";
|
|
48
48
|
collapsible: "collapsible";
|
|
49
49
|
interactive: "interactive";
|
|
@@ -12,12 +12,12 @@ type LlmRetryCategory = z.infer<typeof LlmRetryCategory>;
|
|
|
12
12
|
declare const LlmRetryState: z.ZodObject<{
|
|
13
13
|
retry_id: z.ZodString;
|
|
14
14
|
status: z.ZodEnum<{
|
|
15
|
-
failed: "failed";
|
|
16
|
-
cancelled: "cancelled";
|
|
17
15
|
waiting: "waiting";
|
|
18
16
|
retrying: "retrying";
|
|
19
17
|
succeeded: "succeeded";
|
|
20
18
|
exhausted: "exhausted";
|
|
19
|
+
failed: "failed";
|
|
20
|
+
cancelled: "cancelled";
|
|
21
21
|
}>;
|
|
22
22
|
category: z.ZodEnum<{
|
|
23
23
|
output: "output";
|
|
@@ -12,12 +12,12 @@ type LlmRetryCategory = z.infer<typeof LlmRetryCategory>;
|
|
|
12
12
|
declare const LlmRetryState: z.ZodObject<{
|
|
13
13
|
retry_id: z.ZodString;
|
|
14
14
|
status: z.ZodEnum<{
|
|
15
|
-
failed: "failed";
|
|
16
|
-
cancelled: "cancelled";
|
|
17
15
|
waiting: "waiting";
|
|
18
16
|
retrying: "retrying";
|
|
19
17
|
succeeded: "succeeded";
|
|
20
18
|
exhausted: "exhausted";
|
|
19
|
+
failed: "failed";
|
|
20
|
+
cancelled: "cancelled";
|
|
21
21
|
}>;
|
|
22
22
|
category: z.ZodEnum<{
|
|
23
23
|
output: "output";
|
|
@@ -113,10 +113,10 @@ declare const TaskTrackingMeta: z.ZodObject<{
|
|
|
113
113
|
taskType: z.ZodOptional<z.ZodString>;
|
|
114
114
|
taskId: z.ZodOptional<z.ZodString>;
|
|
115
115
|
taskStatus: z.ZodOptional<z.ZodEnum<{
|
|
116
|
+
failed: "failed";
|
|
116
117
|
requested: "requested";
|
|
117
|
-
in_progress: "in_progress";
|
|
118
118
|
completed: "completed";
|
|
119
|
-
|
|
119
|
+
in_progress: "in_progress";
|
|
120
120
|
}>>;
|
|
121
121
|
taskTrackingInfo: z.ZodOptional<z.ZodObject<{
|
|
122
122
|
startTime: z.ZodOptional<z.ZodNumber>;
|
|
@@ -216,10 +216,10 @@ declare const PersistentMetadata: z.ZodObject<{
|
|
|
216
216
|
taskType: z.ZodOptional<z.ZodString>;
|
|
217
217
|
taskId: z.ZodOptional<z.ZodString>;
|
|
218
218
|
taskStatus: z.ZodOptional<z.ZodEnum<{
|
|
219
|
+
failed: "failed";
|
|
219
220
|
requested: "requested";
|
|
220
|
-
in_progress: "in_progress";
|
|
221
221
|
completed: "completed";
|
|
222
|
-
|
|
222
|
+
in_progress: "in_progress";
|
|
223
223
|
}>>;
|
|
224
224
|
taskTrackingInfo: z.ZodOptional<z.ZodObject<{
|
|
225
225
|
startTime: z.ZodOptional<z.ZodNumber>;
|
|
@@ -326,10 +326,10 @@ declare const SystemMessage: z.ZodObject<{
|
|
|
326
326
|
taskType: z.ZodOptional<z.ZodString>;
|
|
327
327
|
taskId: z.ZodOptional<z.ZodString>;
|
|
328
328
|
taskStatus: z.ZodOptional<z.ZodEnum<{
|
|
329
|
+
failed: "failed";
|
|
329
330
|
requested: "requested";
|
|
330
|
-
in_progress: "in_progress";
|
|
331
331
|
completed: "completed";
|
|
332
|
-
|
|
332
|
+
in_progress: "in_progress";
|
|
333
333
|
}>>;
|
|
334
334
|
taskTrackingInfo: z.ZodOptional<z.ZodObject<{
|
|
335
335
|
startTime: z.ZodOptional<z.ZodNumber>;
|
|
@@ -344,8 +344,8 @@ declare const SystemMessage: z.ZodObject<{
|
|
|
344
344
|
}, z.core.$loose>>;
|
|
345
345
|
role: z.ZodLiteral<"system">;
|
|
346
346
|
type: z.ZodEnum<{
|
|
347
|
-
system_prompt: "system_prompt";
|
|
348
347
|
history_summary: "history_summary";
|
|
348
|
+
system_prompt: "system_prompt";
|
|
349
349
|
context_injection: "context_injection";
|
|
350
350
|
}>;
|
|
351
351
|
}, z.core.$strip>;
|
|
@@ -443,10 +443,10 @@ declare const UserMessage: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
443
443
|
taskType: z.ZodOptional<z.ZodString>;
|
|
444
444
|
taskId: z.ZodOptional<z.ZodString>;
|
|
445
445
|
taskStatus: z.ZodOptional<z.ZodEnum<{
|
|
446
|
+
failed: "failed";
|
|
446
447
|
requested: "requested";
|
|
447
|
-
in_progress: "in_progress";
|
|
448
448
|
completed: "completed";
|
|
449
|
-
|
|
449
|
+
in_progress: "in_progress";
|
|
450
450
|
}>>;
|
|
451
451
|
taskTrackingInfo: z.ZodOptional<z.ZodObject<{
|
|
452
452
|
startTime: z.ZodOptional<z.ZodNumber>;
|
|
@@ -570,10 +570,121 @@ declare const UserMessage: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
570
570
|
taskType: z.ZodOptional<z.ZodString>;
|
|
571
571
|
taskId: z.ZodOptional<z.ZodString>;
|
|
572
572
|
taskStatus: z.ZodOptional<z.ZodEnum<{
|
|
573
|
+
failed: "failed";
|
|
573
574
|
requested: "requested";
|
|
574
|
-
in_progress: "in_progress";
|
|
575
575
|
completed: "completed";
|
|
576
|
+
in_progress: "in_progress";
|
|
577
|
+
}>>;
|
|
578
|
+
taskTrackingInfo: z.ZodOptional<z.ZodObject<{
|
|
579
|
+
startTime: z.ZodOptional<z.ZodNumber>;
|
|
580
|
+
endTime: z.ZodOptional<z.ZodNumber>;
|
|
581
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
582
|
+
retryCount: z.ZodOptional<z.ZodNumber>;
|
|
583
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
584
|
+
}, z.core.$strip>>;
|
|
585
|
+
fenceKind: z.ZodOptional<z.ZodString>;
|
|
586
|
+
fenceAttrs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
587
|
+
fencePlacement: z.ZodOptional<z.ZodString>;
|
|
588
|
+
}, z.core.$loose>>;
|
|
589
|
+
role: z.ZodLiteral<"user">;
|
|
590
|
+
type: z.ZodLiteral<"user_steer">;
|
|
591
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
592
|
+
id: z.ZodString;
|
|
593
|
+
content: z.ZodString;
|
|
594
|
+
timestamp: z.ZodNumber;
|
|
595
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
596
|
+
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
597
|
+
originalMessageCount: z.ZodOptional<z.ZodNumber>;
|
|
598
|
+
compressionRatio: z.ZodOptional<z.ZodNumber>;
|
|
599
|
+
includedOldSummary: z.ZodOptional<z.ZodBoolean>;
|
|
600
|
+
replacedMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
601
|
+
summarySeq: z.ZodOptional<z.ZodNumber>;
|
|
602
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
603
|
+
id: z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">;
|
|
604
|
+
type: z.ZodLiteral<"function">;
|
|
605
|
+
function: z.ZodObject<{
|
|
606
|
+
name: z.ZodString;
|
|
607
|
+
arguments: z.ZodString;
|
|
608
|
+
}, z.core.$strip>;
|
|
609
|
+
}, z.core.$strict>>>;
|
|
610
|
+
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
611
|
+
schema_version: z.ZodLiteral<2>;
|
|
612
|
+
producer: z.ZodObject<{
|
|
613
|
+
model_id: z.ZodString;
|
|
614
|
+
endpoint_id: z.ZodString;
|
|
615
|
+
api_surface: z.ZodString;
|
|
616
|
+
capability_id: z.ZodString;
|
|
617
|
+
endpoint_model_id: z.ZodString;
|
|
618
|
+
}, z.core.$strict>;
|
|
619
|
+
kind: z.ZodString;
|
|
620
|
+
payload: z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>;
|
|
621
|
+
}, z.core.$strict>>>;
|
|
622
|
+
assistant_replay_parts: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
623
|
+
type: z.ZodLiteral<"text">;
|
|
624
|
+
text: z.ZodString;
|
|
625
|
+
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
626
|
+
schema_version: z.ZodLiteral<2>;
|
|
627
|
+
producer: z.ZodObject<{
|
|
628
|
+
model_id: z.ZodString;
|
|
629
|
+
endpoint_id: z.ZodString;
|
|
630
|
+
api_surface: z.ZodString;
|
|
631
|
+
capability_id: z.ZodString;
|
|
632
|
+
endpoint_model_id: z.ZodString;
|
|
633
|
+
}, z.core.$strict>;
|
|
634
|
+
kind: z.ZodString;
|
|
635
|
+
payload: z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>;
|
|
636
|
+
}, z.core.$strict>>>;
|
|
637
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
638
|
+
type: z.ZodLiteral<"reasoning">;
|
|
639
|
+
text: z.ZodString;
|
|
640
|
+
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
641
|
+
schema_version: z.ZodLiteral<2>;
|
|
642
|
+
producer: z.ZodObject<{
|
|
643
|
+
model_id: z.ZodString;
|
|
644
|
+
endpoint_id: z.ZodString;
|
|
645
|
+
api_surface: z.ZodString;
|
|
646
|
+
capability_id: z.ZodString;
|
|
647
|
+
endpoint_model_id: z.ZodString;
|
|
648
|
+
}, z.core.$strict>;
|
|
649
|
+
kind: z.ZodString;
|
|
650
|
+
payload: z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>;
|
|
651
|
+
}, z.core.$strict>>>;
|
|
652
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
653
|
+
type: z.ZodLiteral<"tool_call">;
|
|
654
|
+
tool_call_id: z.ZodString;
|
|
655
|
+
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
656
|
+
schema_version: z.ZodLiteral<2>;
|
|
657
|
+
producer: z.ZodObject<{
|
|
658
|
+
model_id: z.ZodString;
|
|
659
|
+
endpoint_id: z.ZodString;
|
|
660
|
+
api_surface: z.ZodString;
|
|
661
|
+
capability_id: z.ZodString;
|
|
662
|
+
endpoint_model_id: z.ZodString;
|
|
663
|
+
}, z.core.$strict>;
|
|
664
|
+
kind: z.ZodString;
|
|
665
|
+
payload: z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>;
|
|
666
|
+
}, z.core.$strict>>>;
|
|
667
|
+
}, z.core.$strict>], "type">>>;
|
|
668
|
+
tool_name: z.ZodOptional<z.ZodString>;
|
|
669
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
670
|
+
tool_call_id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">>;
|
|
671
|
+
observationTruncation: z.ZodOptional<z.ZodObject<{
|
|
672
|
+
blobId: z.ZodOptional<z.ZodString>;
|
|
673
|
+
originalChars: z.ZodNumber;
|
|
674
|
+
previewChars: z.ZodNumber;
|
|
675
|
+
originalLines: z.ZodOptional<z.ZodNumber>;
|
|
676
|
+
previewLines: z.ZodOptional<z.ZodNumber>;
|
|
677
|
+
}, z.core.$strip>>;
|
|
678
|
+
data: z.ZodOptional<z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>;
|
|
679
|
+
error: z.ZodOptional<z.ZodString>;
|
|
680
|
+
presentation: z.ZodOptional<z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>;
|
|
681
|
+
taskType: z.ZodOptional<z.ZodString>;
|
|
682
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
683
|
+
taskStatus: z.ZodOptional<z.ZodEnum<{
|
|
576
684
|
failed: "failed";
|
|
685
|
+
requested: "requested";
|
|
686
|
+
completed: "completed";
|
|
687
|
+
in_progress: "in_progress";
|
|
577
688
|
}>>;
|
|
578
689
|
taskTrackingInfo: z.ZodOptional<z.ZodObject<{
|
|
579
690
|
startTime: z.ZodOptional<z.ZodNumber>;
|
|
@@ -686,10 +797,10 @@ declare const AssistantMessage: z.ZodObject<{
|
|
|
686
797
|
taskType: z.ZodOptional<z.ZodString>;
|
|
687
798
|
taskId: z.ZodOptional<z.ZodString>;
|
|
688
799
|
taskStatus: z.ZodOptional<z.ZodEnum<{
|
|
800
|
+
failed: "failed";
|
|
689
801
|
requested: "requested";
|
|
690
|
-
in_progress: "in_progress";
|
|
691
802
|
completed: "completed";
|
|
692
|
-
|
|
803
|
+
in_progress: "in_progress";
|
|
693
804
|
}>>;
|
|
694
805
|
taskTrackingInfo: z.ZodOptional<z.ZodObject<{
|
|
695
806
|
startTime: z.ZodOptional<z.ZodNumber>;
|
|
@@ -704,8 +815,8 @@ declare const AssistantMessage: z.ZodObject<{
|
|
|
704
815
|
}, z.core.$loose>>;
|
|
705
816
|
role: z.ZodLiteral<"assistant">;
|
|
706
817
|
type: z.ZodEnum<{
|
|
707
|
-
tool_calls: "tool_calls";
|
|
708
818
|
thought: "thought";
|
|
819
|
+
tool_calls: "tool_calls";
|
|
709
820
|
final_answer: "final_answer";
|
|
710
821
|
tool_code: "tool_code";
|
|
711
822
|
task_completion: "task_completion";
|
|
@@ -805,10 +916,10 @@ declare const ToolMessage: z.ZodObject<{
|
|
|
805
916
|
taskType: z.ZodOptional<z.ZodString>;
|
|
806
917
|
taskId: z.ZodOptional<z.ZodString>;
|
|
807
918
|
taskStatus: z.ZodOptional<z.ZodEnum<{
|
|
919
|
+
failed: "failed";
|
|
808
920
|
requested: "requested";
|
|
809
|
-
in_progress: "in_progress";
|
|
810
921
|
completed: "completed";
|
|
811
|
-
|
|
922
|
+
in_progress: "in_progress";
|
|
812
923
|
}>>;
|
|
813
924
|
taskTrackingInfo: z.ZodOptional<z.ZodObject<{
|
|
814
925
|
startTime: z.ZodOptional<z.ZodNumber>;
|
|
@@ -934,10 +1045,10 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
|
|
|
934
1045
|
taskType: z.ZodOptional<z.ZodString>;
|
|
935
1046
|
taskId: z.ZodOptional<z.ZodString>;
|
|
936
1047
|
taskStatus: z.ZodOptional<z.ZodEnum<{
|
|
1048
|
+
failed: "failed";
|
|
937
1049
|
requested: "requested";
|
|
938
|
-
in_progress: "in_progress";
|
|
939
1050
|
completed: "completed";
|
|
940
|
-
|
|
1051
|
+
in_progress: "in_progress";
|
|
941
1052
|
}>>;
|
|
942
1053
|
taskTrackingInfo: z.ZodOptional<z.ZodObject<{
|
|
943
1054
|
startTime: z.ZodOptional<z.ZodNumber>;
|
|
@@ -952,8 +1063,8 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
|
|
|
952
1063
|
}, z.core.$loose>>;
|
|
953
1064
|
role: z.ZodLiteral<"system">;
|
|
954
1065
|
type: z.ZodEnum<{
|
|
955
|
-
system_prompt: "system_prompt";
|
|
956
1066
|
history_summary: "history_summary";
|
|
1067
|
+
system_prompt: "system_prompt";
|
|
957
1068
|
context_injection: "context_injection";
|
|
958
1069
|
}>;
|
|
959
1070
|
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1049,10 +1160,10 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
|
|
|
1049
1160
|
taskType: z.ZodOptional<z.ZodString>;
|
|
1050
1161
|
taskId: z.ZodOptional<z.ZodString>;
|
|
1051
1162
|
taskStatus: z.ZodOptional<z.ZodEnum<{
|
|
1163
|
+
failed: "failed";
|
|
1052
1164
|
requested: "requested";
|
|
1053
|
-
in_progress: "in_progress";
|
|
1054
1165
|
completed: "completed";
|
|
1055
|
-
|
|
1166
|
+
in_progress: "in_progress";
|
|
1056
1167
|
}>>;
|
|
1057
1168
|
taskTrackingInfo: z.ZodOptional<z.ZodObject<{
|
|
1058
1169
|
startTime: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1176,10 +1287,121 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
|
|
|
1176
1287
|
taskType: z.ZodOptional<z.ZodString>;
|
|
1177
1288
|
taskId: z.ZodOptional<z.ZodString>;
|
|
1178
1289
|
taskStatus: z.ZodOptional<z.ZodEnum<{
|
|
1290
|
+
failed: "failed";
|
|
1179
1291
|
requested: "requested";
|
|
1180
|
-
in_progress: "in_progress";
|
|
1181
1292
|
completed: "completed";
|
|
1293
|
+
in_progress: "in_progress";
|
|
1294
|
+
}>>;
|
|
1295
|
+
taskTrackingInfo: z.ZodOptional<z.ZodObject<{
|
|
1296
|
+
startTime: z.ZodOptional<z.ZodNumber>;
|
|
1297
|
+
endTime: z.ZodOptional<z.ZodNumber>;
|
|
1298
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
1299
|
+
retryCount: z.ZodOptional<z.ZodNumber>;
|
|
1300
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
1301
|
+
}, z.core.$strip>>;
|
|
1302
|
+
fenceKind: z.ZodOptional<z.ZodString>;
|
|
1303
|
+
fenceAttrs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1304
|
+
fencePlacement: z.ZodOptional<z.ZodString>;
|
|
1305
|
+
}, z.core.$loose>>;
|
|
1306
|
+
role: z.ZodLiteral<"user">;
|
|
1307
|
+
type: z.ZodLiteral<"user_steer">;
|
|
1308
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1309
|
+
id: z.ZodString;
|
|
1310
|
+
content: z.ZodString;
|
|
1311
|
+
timestamp: z.ZodNumber;
|
|
1312
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
1313
|
+
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
1314
|
+
originalMessageCount: z.ZodOptional<z.ZodNumber>;
|
|
1315
|
+
compressionRatio: z.ZodOptional<z.ZodNumber>;
|
|
1316
|
+
includedOldSummary: z.ZodOptional<z.ZodBoolean>;
|
|
1317
|
+
replacedMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1318
|
+
summarySeq: z.ZodOptional<z.ZodNumber>;
|
|
1319
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1320
|
+
id: z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">;
|
|
1321
|
+
type: z.ZodLiteral<"function">;
|
|
1322
|
+
function: z.ZodObject<{
|
|
1323
|
+
name: z.ZodString;
|
|
1324
|
+
arguments: z.ZodString;
|
|
1325
|
+
}, z.core.$strip>;
|
|
1326
|
+
}, z.core.$strict>>>;
|
|
1327
|
+
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1328
|
+
schema_version: z.ZodLiteral<2>;
|
|
1329
|
+
producer: z.ZodObject<{
|
|
1330
|
+
model_id: z.ZodString;
|
|
1331
|
+
endpoint_id: z.ZodString;
|
|
1332
|
+
api_surface: z.ZodString;
|
|
1333
|
+
capability_id: z.ZodString;
|
|
1334
|
+
endpoint_model_id: z.ZodString;
|
|
1335
|
+
}, z.core.$strict>;
|
|
1336
|
+
kind: z.ZodString;
|
|
1337
|
+
payload: z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>;
|
|
1338
|
+
}, z.core.$strict>>>;
|
|
1339
|
+
assistant_replay_parts: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1340
|
+
type: z.ZodLiteral<"text">;
|
|
1341
|
+
text: z.ZodString;
|
|
1342
|
+
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1343
|
+
schema_version: z.ZodLiteral<2>;
|
|
1344
|
+
producer: z.ZodObject<{
|
|
1345
|
+
model_id: z.ZodString;
|
|
1346
|
+
endpoint_id: z.ZodString;
|
|
1347
|
+
api_surface: z.ZodString;
|
|
1348
|
+
capability_id: z.ZodString;
|
|
1349
|
+
endpoint_model_id: z.ZodString;
|
|
1350
|
+
}, z.core.$strict>;
|
|
1351
|
+
kind: z.ZodString;
|
|
1352
|
+
payload: z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>;
|
|
1353
|
+
}, z.core.$strict>>>;
|
|
1354
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1355
|
+
type: z.ZodLiteral<"reasoning">;
|
|
1356
|
+
text: z.ZodString;
|
|
1357
|
+
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1358
|
+
schema_version: z.ZodLiteral<2>;
|
|
1359
|
+
producer: z.ZodObject<{
|
|
1360
|
+
model_id: z.ZodString;
|
|
1361
|
+
endpoint_id: z.ZodString;
|
|
1362
|
+
api_surface: z.ZodString;
|
|
1363
|
+
capability_id: z.ZodString;
|
|
1364
|
+
endpoint_model_id: z.ZodString;
|
|
1365
|
+
}, z.core.$strict>;
|
|
1366
|
+
kind: z.ZodString;
|
|
1367
|
+
payload: z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>;
|
|
1368
|
+
}, z.core.$strict>>>;
|
|
1369
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1370
|
+
type: z.ZodLiteral<"tool_call">;
|
|
1371
|
+
tool_call_id: z.ZodString;
|
|
1372
|
+
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1373
|
+
schema_version: z.ZodLiteral<2>;
|
|
1374
|
+
producer: z.ZodObject<{
|
|
1375
|
+
model_id: z.ZodString;
|
|
1376
|
+
endpoint_id: z.ZodString;
|
|
1377
|
+
api_surface: z.ZodString;
|
|
1378
|
+
capability_id: z.ZodString;
|
|
1379
|
+
endpoint_model_id: z.ZodString;
|
|
1380
|
+
}, z.core.$strict>;
|
|
1381
|
+
kind: z.ZodString;
|
|
1382
|
+
payload: z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>;
|
|
1383
|
+
}, z.core.$strict>>>;
|
|
1384
|
+
}, z.core.$strict>], "type">>>;
|
|
1385
|
+
tool_name: z.ZodOptional<z.ZodString>;
|
|
1386
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1387
|
+
tool_call_id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">>;
|
|
1388
|
+
observationTruncation: z.ZodOptional<z.ZodObject<{
|
|
1389
|
+
blobId: z.ZodOptional<z.ZodString>;
|
|
1390
|
+
originalChars: z.ZodNumber;
|
|
1391
|
+
previewChars: z.ZodNumber;
|
|
1392
|
+
originalLines: z.ZodOptional<z.ZodNumber>;
|
|
1393
|
+
previewLines: z.ZodOptional<z.ZodNumber>;
|
|
1394
|
+
}, z.core.$strip>>;
|
|
1395
|
+
data: z.ZodOptional<z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>;
|
|
1396
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1397
|
+
presentation: z.ZodOptional<z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>;
|
|
1398
|
+
taskType: z.ZodOptional<z.ZodString>;
|
|
1399
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
1400
|
+
taskStatus: z.ZodOptional<z.ZodEnum<{
|
|
1182
1401
|
failed: "failed";
|
|
1402
|
+
requested: "requested";
|
|
1403
|
+
completed: "completed";
|
|
1404
|
+
in_progress: "in_progress";
|
|
1183
1405
|
}>>;
|
|
1184
1406
|
taskTrackingInfo: z.ZodOptional<z.ZodObject<{
|
|
1185
1407
|
startTime: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1290,10 +1512,10 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
|
|
|
1290
1512
|
taskType: z.ZodOptional<z.ZodString>;
|
|
1291
1513
|
taskId: z.ZodOptional<z.ZodString>;
|
|
1292
1514
|
taskStatus: z.ZodOptional<z.ZodEnum<{
|
|
1515
|
+
failed: "failed";
|
|
1293
1516
|
requested: "requested";
|
|
1294
|
-
in_progress: "in_progress";
|
|
1295
1517
|
completed: "completed";
|
|
1296
|
-
|
|
1518
|
+
in_progress: "in_progress";
|
|
1297
1519
|
}>>;
|
|
1298
1520
|
taskTrackingInfo: z.ZodOptional<z.ZodObject<{
|
|
1299
1521
|
startTime: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1308,8 +1530,8 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
|
|
|
1308
1530
|
}, z.core.$loose>>;
|
|
1309
1531
|
role: z.ZodLiteral<"assistant">;
|
|
1310
1532
|
type: z.ZodEnum<{
|
|
1311
|
-
tool_calls: "tool_calls";
|
|
1312
1533
|
thought: "thought";
|
|
1534
|
+
tool_calls: "tool_calls";
|
|
1313
1535
|
final_answer: "final_answer";
|
|
1314
1536
|
tool_code: "tool_code";
|
|
1315
1537
|
task_completion: "task_completion";
|
|
@@ -1407,10 +1629,10 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
|
|
|
1407
1629
|
taskType: z.ZodOptional<z.ZodString>;
|
|
1408
1630
|
taskId: z.ZodOptional<z.ZodString>;
|
|
1409
1631
|
taskStatus: z.ZodOptional<z.ZodEnum<{
|
|
1632
|
+
failed: "failed";
|
|
1410
1633
|
requested: "requested";
|
|
1411
|
-
in_progress: "in_progress";
|
|
1412
1634
|
completed: "completed";
|
|
1413
|
-
|
|
1635
|
+
in_progress: "in_progress";
|
|
1414
1636
|
}>>;
|
|
1415
1637
|
taskTrackingInfo: z.ZodOptional<z.ZodObject<{
|
|
1416
1638
|
startTime: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1444,7 +1666,7 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
|
|
|
1444
1666
|
}, z.core.$strip>]>>;
|
|
1445
1667
|
type AiMessage = z.infer<typeof AiMessage>;
|
|
1446
1668
|
declare function createSystemMessage(type: SystemMessage['type'], content: string, metadata?: PersistentMetadata): SystemMessage;
|
|
1447
|
-
type UserContextMessageType = Exclude<UserMessage['type'], 'user_input'>;
|
|
1669
|
+
type UserContextMessageType = Exclude<UserMessage['type'], 'user_input' | 'user_steer'>;
|
|
1448
1670
|
declare const UserInputMessage: z.ZodObject<{
|
|
1449
1671
|
id: z.ZodString;
|
|
1450
1672
|
content: z.ZodString;
|
|
@@ -1538,10 +1760,10 @@ declare const UserInputMessage: z.ZodObject<{
|
|
|
1538
1760
|
taskType: z.ZodOptional<z.ZodString>;
|
|
1539
1761
|
taskId: z.ZodOptional<z.ZodString>;
|
|
1540
1762
|
taskStatus: z.ZodOptional<z.ZodEnum<{
|
|
1763
|
+
failed: "failed";
|
|
1541
1764
|
requested: "requested";
|
|
1542
|
-
in_progress: "in_progress";
|
|
1543
1765
|
completed: "completed";
|
|
1544
|
-
|
|
1766
|
+
in_progress: "in_progress";
|
|
1545
1767
|
}>>;
|
|
1546
1768
|
taskTrackingInfo: z.ZodOptional<z.ZodObject<{
|
|
1547
1769
|
startTime: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1669,10 +1891,10 @@ declare const UserContextMessage: z.ZodObject<{
|
|
|
1669
1891
|
taskType: z.ZodOptional<z.ZodString>;
|
|
1670
1892
|
taskId: z.ZodOptional<z.ZodString>;
|
|
1671
1893
|
taskStatus: z.ZodOptional<z.ZodEnum<{
|
|
1894
|
+
failed: "failed";
|
|
1672
1895
|
requested: "requested";
|
|
1673
|
-
in_progress: "in_progress";
|
|
1674
1896
|
completed: "completed";
|
|
1675
|
-
|
|
1897
|
+
in_progress: "in_progress";
|
|
1676
1898
|
}>>;
|
|
1677
1899
|
taskTrackingInfo: z.ZodOptional<z.ZodObject<{
|
|
1678
1900
|
startTime: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1691,7 +1913,9 @@ declare const UserContextMessage: z.ZodObject<{
|
|
|
1691
1913
|
task_request: "task_request";
|
|
1692
1914
|
}>;
|
|
1693
1915
|
}, z.core.$strip>;
|
|
1694
|
-
type UserContextMessage = Exclude<UserMessage, UserInputMessage
|
|
1916
|
+
type UserContextMessage = Exclude<UserMessage, UserInputMessage | {
|
|
1917
|
+
type: 'user_steer';
|
|
1918
|
+
}>;
|
|
1695
1919
|
declare function createUserMessage(type: 'user_input', content: string, metadata?: PersistentMetadata, attachments?: readonly RuntimeResourceRef[]): UserInputMessage;
|
|
1696
1920
|
declare function createUserMessage(type: UserContextMessageType, content: string, metadata?: PersistentMetadata): UserContextMessage;
|
|
1697
1921
|
declare function createAssistantMessage(type: AssistantMessage['type'], content: string, metadata?: PersistentMetadata): AssistantMessage;
|