@superdurable/dex-agents 0.0.0-stage → 0.2.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/LICENSE +105 -0
- package/README.md +1981 -2
- package/dist/src/agent-built-in-tools.d.ts +81 -0
- package/dist/src/agent-built-in-tools.js +246 -0
- package/dist/src/agent-built-in-tools.js.map +1 -0
- package/dist/src/agent-context-compaction.d.ts +108 -0
- package/dist/src/agent-context-compaction.js +39 -0
- package/dist/src/agent-context-compaction.js.map +1 -0
- package/dist/src/agent-event-writer.d.ts +26 -0
- package/dist/src/agent-event-writer.js +110 -0
- package/dist/src/agent-event-writer.js.map +1 -0
- package/dist/src/agent-framework-runner.d.ts +808 -0
- package/dist/src/agent-framework-runner.js +82 -0
- package/dist/src/agent-framework-runner.js.map +1 -0
- package/dist/src/agent-plans.d.ts +48 -0
- package/dist/src/agent-plans.js +86 -0
- package/dist/src/agent-plans.js.map +1 -0
- package/dist/src/agent-session-cancellation-steps.d.ts +28 -0
- package/dist/src/agent-session-cancellation-steps.js +154 -0
- package/dist/src/agent-session-cancellation-steps.js.map +1 -0
- package/dist/src/agent-session-codecs.d.ts +105 -0
- package/dist/src/agent-session-codecs.js +689 -0
- package/dist/src/agent-session-codecs.js.map +1 -0
- package/dist/src/agent-session-flow.d.ts +416 -0
- package/dist/src/agent-session-flow.js +623 -0
- package/dist/src/agent-session-flow.js.map +1 -0
- package/dist/src/agent-session-persistence.d.ts +133 -0
- package/dist/src/agent-session-persistence.js +74 -0
- package/dist/src/agent-session-persistence.js.map +1 -0
- package/dist/src/agent-session-settings.d.ts +58 -0
- package/dist/src/agent-session-settings.js +81 -0
- package/dist/src/agent-session-settings.js.map +1 -0
- package/dist/src/agent-session-step-options.d.ts +27 -0
- package/dist/src/agent-session-step-options.js +39 -0
- package/dist/src/agent-session-step-options.js.map +1 -0
- package/dist/src/agent-session-step-types.d.ts +20 -0
- package/dist/src/agent-session-step-types.js +28 -0
- package/dist/src/agent-session-step-types.js.map +1 -0
- package/dist/src/agent-session-steps.d.ts +179 -0
- package/dist/src/agent-session-steps.js +1272 -0
- package/dist/src/agent-session-steps.js.map +1 -0
- package/dist/src/agent-session-tracer.d.ts +61 -0
- package/dist/src/agent-session-tracer.js +608 -0
- package/dist/src/agent-session-tracer.js.map +1 -0
- package/dist/src/agent-session-transitions.d.ts +224 -0
- package/dist/src/agent-session-transitions.js +850 -0
- package/dist/src/agent-session-transitions.js.map +1 -0
- package/dist/src/agent-session-values.d.ts +998 -0
- package/dist/src/agent-session-values.js +162 -0
- package/dist/src/agent-session-values.js.map +1 -0
- package/dist/src/agent-session-wait-steps.d.ts +53 -0
- package/dist/src/agent-session-wait-steps.js +389 -0
- package/dist/src/agent-session-wait-steps.js.map +1 -0
- package/dist/src/agent-tracing-options.d.ts +107 -0
- package/dist/src/agent-tracing-options.js +20 -0
- package/dist/src/agent-tracing-options.js.map +1 -0
- package/dist/src/ai-sdk/ai-sdk-model-client.d.ts +40 -0
- package/dist/src/ai-sdk/ai-sdk-model-client.js +235 -0
- package/dist/src/ai-sdk/ai-sdk-model-client.js.map +1 -0
- package/dist/src/ai-sdk/index.d.ts +1 -0
- package/dist/src/ai-sdk/index.js +9 -0
- package/dist/src/ai-sdk/index.js.map +1 -0
- package/dist/src/index.d.ts +10 -0
- package/dist/src/index.js +17 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/mcp/index.d.ts +3 -0
- package/dist/src/mcp/index.js +10 -0
- package/dist/src/mcp/index.js.map +1 -0
- package/dist/src/mcp/mcp-resource-and-prompt-tools.d.ts +29 -0
- package/dist/src/mcp/mcp-resource-and-prompt-tools.js +185 -0
- package/dist/src/mcp/mcp-resource-and-prompt-tools.js.map +1 -0
- package/dist/src/mcp/mcp-server-config.d.ts +86 -0
- package/dist/src/mcp/mcp-server-config.js +38 -0
- package/dist/src/mcp/mcp-server-config.js.map +1 -0
- package/dist/src/mcp/mcp-tool-source.d.ts +470 -0
- package/dist/src/mcp/mcp-tool-source.js +1204 -0
- package/dist/src/mcp/mcp-tool-source.js.map +1 -0
- package/dist/src/stepwise/agent-definition.d.ts +158 -0
- package/dist/src/stepwise/agent-definition.js +9 -0
- package/dist/src/stepwise/agent-definition.js.map +1 -0
- package/dist/src/stepwise/function-tool.d.ts +130 -0
- package/dist/src/stepwise/function-tool.js +75 -0
- package/dist/src/stepwise/function-tool.js.map +1 -0
- package/dist/src/stepwise/index.d.ts +7 -0
- package/dist/src/stepwise/index.js +12 -0
- package/dist/src/stepwise/index.js.map +1 -0
- package/dist/src/stepwise/json-schema-validation.d.ts +9 -0
- package/dist/src/stepwise/json-schema-validation.js +141 -0
- package/dist/src/stepwise/json-schema-validation.js.map +1 -0
- package/dist/src/stepwise/model-client.d.ts +194 -0
- package/dist/src/stepwise/model-client.js +9 -0
- package/dist/src/stepwise/model-client.js.map +1 -0
- package/dist/src/stepwise/scripted-model-client.d.ts +99 -0
- package/dist/src/stepwise/scripted-model-client.js +156 -0
- package/dist/src/stepwise/scripted-model-client.js.map +1 -0
- package/dist/src/stepwise/stepwise-agent-runner.d.ts +189 -0
- package/dist/src/stepwise/stepwise-agent-runner.js +804 -0
- package/dist/src/stepwise/stepwise-agent-runner.js.map +1 -0
- package/dist/src/stepwise/stepwise-agent-session-flow.d.ts +35 -0
- package/dist/src/stepwise/stepwise-agent-session-flow.js +56 -0
- package/dist/src/stepwise/stepwise-agent-session-flow.js.map +1 -0
- package/dist/src/stepwise/stepwise-input-items.d.ts +12 -0
- package/dist/src/stepwise/stepwise-input-items.js +172 -0
- package/dist/src/stepwise/stepwise-input-items.js.map +1 -0
- package/dist/src/stepwise/tool-source.d.ts +103 -0
- package/dist/src/stepwise/tool-source.js +9 -0
- package/dist/src/stepwise/tool-source.js.map +1 -0
- package/dist/src/testing/agent-session-test-client.d.ts +205 -0
- package/dist/src/testing/agent-session-test-client.js +290 -0
- package/dist/src/testing/agent-session-test-client.js.map +1 -0
- package/dist/src/testing/agent-test-environment.d.ts +52 -0
- package/dist/src/testing/agent-test-environment.js +86 -0
- package/dist/src/testing/agent-test-environment.js.map +1 -0
- package/dist/src/testing/agent-worker-process.d.ts +91 -0
- package/dist/src/testing/agent-worker-process.js +150 -0
- package/dist/src/testing/agent-worker-process.js.map +1 -0
- package/dist/src/testing/child-process-group.d.ts +33 -0
- package/dist/src/testing/child-process-group.js +164 -0
- package/dist/src/testing/child-process-group.js.map +1 -0
- package/dist/src/testing/coordination.d.ts +99 -0
- package/dist/src/testing/coordination.js +155 -0
- package/dist/src/testing/coordination.js.map +1 -0
- package/dist/src/testing/index.d.ts +8 -0
- package/dist/src/testing/index.js +16 -0
- package/dist/src/testing/index.js.map +1 -0
- package/dist/src/testing/polling.d.ts +31 -0
- package/dist/src/testing/polling.js +51 -0
- package/dist/src/testing/polling.js.map +1 -0
- package/dist/src/testing/private-dex-engine.d.ts +101 -0
- package/dist/src/testing/private-dex-engine.js +223 -0
- package/dist/src/testing/private-dex-engine.js.map +1 -0
- package/dist/src/testing/scripted-model-client.d.ts +1 -0
- package/dist/src/testing/scripted-model-client.js +10 -0
- package/dist/src/testing/scripted-model-client.js.map +1 -0
- package/dist/src/testing/step-history.d.ts +40 -0
- package/dist/src/testing/step-history.js +59 -0
- package/dist/src/testing/step-history.js.map +1 -0
- package/dist/src/ui-stream/agent-event-json.d.ts +30 -0
- package/dist/src/ui-stream/agent-event-json.js +64 -0
- package/dist/src/ui-stream/agent-event-json.js.map +1 -0
- package/dist/src/ui-stream/agent-event-sse.d.ts +154 -0
- package/dist/src/ui-stream/agent-event-sse.js +159 -0
- package/dist/src/ui-stream/agent-event-sse.js.map +1 -0
- package/dist/src/ui-stream/agent-event-stream-positions.d.ts +42 -0
- package/dist/src/ui-stream/agent-event-stream-positions.js +153 -0
- package/dist/src/ui-stream/agent-event-stream-positions.js.map +1 -0
- package/dist/src/ui-stream/agent-session-record-reader.d.ts +72 -0
- package/dist/src/ui-stream/agent-session-record-reader.js +241 -0
- package/dist/src/ui-stream/agent-session-record-reader.js.map +1 -0
- package/dist/src/ui-stream/agent-ui-message-stream-responses.d.ts +219 -0
- package/dist/src/ui-stream/agent-ui-message-stream-responses.js +440 -0
- package/dist/src/ui-stream/agent-ui-message-stream-responses.js.map +1 -0
- package/dist/src/ui-stream/agent-ui-message-stream.d.ts +138 -0
- package/dist/src/ui-stream/agent-ui-message-stream.js +681 -0
- package/dist/src/ui-stream/agent-ui-message-stream.js.map +1 -0
- package/dist/src/ui-stream/agent-ui-message-types.d.ts +238 -0
- package/dist/src/ui-stream/agent-ui-message-types.js +57 -0
- package/dist/src/ui-stream/agent-ui-message-types.js.map +1 -0
- package/dist/src/ui-stream/agent-ui-messages.d.ts +66 -0
- package/dist/src/ui-stream/agent-ui-messages.js +220 -0
- package/dist/src/ui-stream/agent-ui-messages.js.map +1 -0
- package/dist/src/ui-stream/agent-ui-stream-cursor.d.ts +64 -0
- package/dist/src/ui-stream/agent-ui-stream-cursor.js +186 -0
- package/dist/src/ui-stream/agent-ui-stream-cursor.js.map +1 -0
- package/dist/src/ui-stream/index.d.ts +14 -0
- package/dist/src/ui-stream/index.js +22 -0
- package/dist/src/ui-stream/index.js.map +1 -0
- package/dist/src/ui-stream/server-sent-event-responses.d.ts +6 -0
- package/dist/src/ui-stream/server-sent-event-responses.js +34 -0
- package/dist/src/ui-stream/server-sent-event-responses.js.map +1 -0
- package/package.json +86 -4
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { StepMovement, Wait, type AsyncContext, type Codec, type Context, type RecoveryErrorInfo, type Step, type StepDecision, type StepOptions } from "@superdurable/dex";
|
|
2
|
+
import { type ToolInputRequested } from "./agent-framework-runner.js";
|
|
3
|
+
import { type AgentSessionTransitions } from "./agent-session-transitions.js";
|
|
4
|
+
import { type AgentSessionPersistence } from "./agent-session-persistence.js";
|
|
5
|
+
import { type AgentInterruptKind, type AgentSessionStartInput, type AgentToolCallRecord, type CompactContextInput, type PlanStatus } from "./agent-session-values.js";
|
|
6
|
+
/** Start of the Flow failure reason when `StartAgentSession` refuses the start input's settings. */
|
|
7
|
+
export declare const invalidStartSessionSettingsReason = "dex-agents: the start input's session_settings are not valid session settings";
|
|
8
|
+
export declare class StartAgentSessionStep implements Step<AgentSessionStartInput> {
|
|
9
|
+
private readonly transitions;
|
|
10
|
+
readonly inputCodec: Codec<AgentSessionStartInput>;
|
|
11
|
+
constructor(transitions: AgentSessionTransitions);
|
|
12
|
+
getStepType(): string;
|
|
13
|
+
getStepOptions(): StepOptions;
|
|
14
|
+
execute(context: Context, input: AgentSessionStartInput): StepDecision;
|
|
15
|
+
}
|
|
16
|
+
/** Waits for one queued user message, or an approved plan execution, and starts its turn. */
|
|
17
|
+
export declare class AwaitUserMessageStep implements Step<void> {
|
|
18
|
+
private readonly transitions;
|
|
19
|
+
readonly inputCodec: Codec<void>;
|
|
20
|
+
constructor(transitions: AgentSessionTransitions);
|
|
21
|
+
getStepType(): string;
|
|
22
|
+
getStepOptions(): StepOptions;
|
|
23
|
+
waitFor(context: Context): Wait;
|
|
24
|
+
execute(context: Context): StepDecision;
|
|
25
|
+
private beginUserMessageTurn;
|
|
26
|
+
}
|
|
27
|
+
/** Plan statuses that `execute_plan` accepts and `AwaitUserMessage` waits for. */
|
|
28
|
+
export declare function isExecutablePlanStatus(status: PlanStatus): boolean;
|
|
29
|
+
/** Makes the turn's next model call and fans the requested tool calls out to parallel Steps. */
|
|
30
|
+
export declare class RunModelStep implements Step<void> {
|
|
31
|
+
private readonly transitions;
|
|
32
|
+
readonly inputCodec: Codec<void>;
|
|
33
|
+
constructor(transitions: AgentSessionTransitions);
|
|
34
|
+
getStepType(): string;
|
|
35
|
+
getStepOptions(): StepOptions;
|
|
36
|
+
execute(context: AsyncContext): Promise<StepDecision>;
|
|
37
|
+
/** Returns RunModel's move instead of a model call, or `null` to call the model. */
|
|
38
|
+
private decideBeforeModelCall;
|
|
39
|
+
private completeTurn;
|
|
40
|
+
/** Returns the sequence to summarize through before this model call, or `null` to make the call. */
|
|
41
|
+
private selectCompactionBeforeModelCall;
|
|
42
|
+
private startCompaction;
|
|
43
|
+
private requestToolCalls;
|
|
44
|
+
/** A planning turn hides executable tools; a call to one never runs. */
|
|
45
|
+
private rejectPlanningTurnToolCall;
|
|
46
|
+
private deferApplicationToolCall;
|
|
47
|
+
/** Records a built-in call with its fixed policy and routes it to its wait Step; invalid arguments fail at once. */
|
|
48
|
+
private deferBuiltInToolCall;
|
|
49
|
+
/** Replaces the plan and records the call final, in this commit; no tool Step runs. */
|
|
50
|
+
private writeTodos;
|
|
51
|
+
private failBuiltInToolCall;
|
|
52
|
+
}
|
|
53
|
+
/** Summarizes the messages through a sequence for the model input, then moves back to `RunModel`. */
|
|
54
|
+
export declare class CompactContextStep implements Step<CompactContextInput | undefined> {
|
|
55
|
+
private readonly transitions;
|
|
56
|
+
readonly inputCodec: Codec<CompactContextInput | undefined>;
|
|
57
|
+
constructor(transitions: AgentSessionTransitions);
|
|
58
|
+
getStepType(): string;
|
|
59
|
+
getStepOptions(): StepOptions;
|
|
60
|
+
execute(context: AsyncContext, input: CompactContextInput | undefined): Promise<StepDecision>;
|
|
61
|
+
private summarize;
|
|
62
|
+
}
|
|
63
|
+
/** Waits for one tool call's approval or its deadline, then runs or rejects the call. */
|
|
64
|
+
export declare class AwaitToolApprovalStep implements Step<string> {
|
|
65
|
+
private readonly transitions;
|
|
66
|
+
readonly inputCodec: Codec<string>;
|
|
67
|
+
constructor(transitions: AgentSessionTransitions);
|
|
68
|
+
getStepType(): string;
|
|
69
|
+
getStepOptions(): StepOptions;
|
|
70
|
+
waitFor(context: Context, toolCallId: string): Wait;
|
|
71
|
+
execute(context: Context, toolCallId: string): StepDecision;
|
|
72
|
+
private applyResolution;
|
|
73
|
+
private rejectToolCall;
|
|
74
|
+
}
|
|
75
|
+
/** Runs one tool call; one class serves `CallTool` and `CallSingleAttemptTool`. */
|
|
76
|
+
export declare class ToolCallStep implements Step<string> {
|
|
77
|
+
private readonly transitions;
|
|
78
|
+
private readonly stepType;
|
|
79
|
+
readonly inputCodec: Codec<string>;
|
|
80
|
+
constructor(transitions: AgentSessionTransitions, stepType: string);
|
|
81
|
+
getStepType(): string;
|
|
82
|
+
getStepOptions(): StepOptions;
|
|
83
|
+
execute(context: AsyncContext, toolCallId: string): Promise<StepDecision>;
|
|
84
|
+
/** Records `awaiting_answer` with the tool's question; `AwaitQuestionAnswer` raises it under the lock. */
|
|
85
|
+
private requestToolInput;
|
|
86
|
+
/** Records `waiting_for_task` and moves to `PollToolTask`, or records a task it cannot poll by effect. */
|
|
87
|
+
private startToolTask;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Failure route of a tool Step; it receives the failed Step's input, the tool call ID.
|
|
91
|
+
* `RecordToolFailure` records `failed` for a `read` call and `outcome_unknown` for a write;
|
|
92
|
+
* `RecordToolOutcomeUnknown` always records `outcome_unknown`. Either records `failed` with
|
|
93
|
+
* {@link toolCallNotRunErrorPrefix} when the tool certainly never ran.
|
|
94
|
+
*/
|
|
95
|
+
export declare class ToolCallFailureRecordingStep implements Step<string> {
|
|
96
|
+
private readonly transitions;
|
|
97
|
+
private readonly stepType;
|
|
98
|
+
private readonly isReadFailureRecorded;
|
|
99
|
+
readonly inputCodec: Codec<string>;
|
|
100
|
+
constructor(transitions: AgentSessionTransitions, stepType: string, isReadFailureRecorded: boolean);
|
|
101
|
+
getStepType(): string;
|
|
102
|
+
getStepOptions(): StepOptions;
|
|
103
|
+
execute(context: Context, toolCallId: string): StepDecision;
|
|
104
|
+
}
|
|
105
|
+
/** Returns the final record that a tool Step's failure route writes. */
|
|
106
|
+
export declare function recoveredToolCall(toolCall: AgentToolCallRecord, recoveryError: RecoveryErrorInfo | undefined, status: "failed" | "outcome_unknown"): AgentToolCallRecord;
|
|
107
|
+
/**
|
|
108
|
+
* Waits until every tool call of the batch has a final record, then makes the next model call.
|
|
109
|
+
*
|
|
110
|
+
* A steer wakes it early: it cancels the turn's pending interrupts and Timers, and waits again. After a steer or
|
|
111
|
+
* `cancel_turn`, once every result is in, it moves to `ApplyTurnControl` instead of `RunModel`.
|
|
112
|
+
*/
|
|
113
|
+
export declare class ResumeTurnStep implements Step<number> {
|
|
114
|
+
private readonly transitions;
|
|
115
|
+
readonly inputCodec: Codec<number>;
|
|
116
|
+
constructor(transitions: AgentSessionTransitions);
|
|
117
|
+
getStepType(): string;
|
|
118
|
+
getStepOptions(): StepOptions;
|
|
119
|
+
waitFor(_context: Context, expectedResultCount: number): Wait;
|
|
120
|
+
execute(context: Context, expectedResultCount: number): StepDecision;
|
|
121
|
+
/** Cancels the turn's pending interrupts and wakes each Step waiting for a person or a Timer. */
|
|
122
|
+
private wakeWaitingToolCalls;
|
|
123
|
+
}
|
|
124
|
+
/** Ends a steered or cancelled turn, then starts a turn with the steered messages. */
|
|
125
|
+
export declare class ApplyTurnControlStep implements Step<void> {
|
|
126
|
+
private readonly transitions;
|
|
127
|
+
readonly inputCodec: Codec<void>;
|
|
128
|
+
constructor(transitions: AgentSessionTransitions);
|
|
129
|
+
getStepType(): string;
|
|
130
|
+
getStepOptions(): StepOptions;
|
|
131
|
+
waitFor(): Wait;
|
|
132
|
+
execute(context: Context): StepDecision;
|
|
133
|
+
}
|
|
134
|
+
/** Ends a failed turn; it is the failure route of `RunModel` and `CompactContext`, so it takes either's input. */
|
|
135
|
+
export declare class RecordTurnFailureStep implements Step<CompactContextInput | undefined> {
|
|
136
|
+
private readonly transitions;
|
|
137
|
+
readonly inputCodec: Codec<CompactContextInput | undefined>;
|
|
138
|
+
constructor(transitions: AgentSessionTransitions);
|
|
139
|
+
getStepType(): string;
|
|
140
|
+
getStepOptions(): StepOptions;
|
|
141
|
+
execute(context: Context): StepDecision;
|
|
142
|
+
}
|
|
143
|
+
/** `last_turn_error` of a turn whose runner stored messages incrementally without the builder. */
|
|
144
|
+
export declare const missingUnfinishedTurnMessageBuilder = "a runner that sets ToolCallsRequested.newMessages must implement buildUnfinishedTurnMessages";
|
|
145
|
+
/**
|
|
146
|
+
* Returns the full options of a tool Step type. With a tool call ID, the Step loads only that call's
|
|
147
|
+
* record; a movement's options replace the Step's static options, so every option is repeated here.
|
|
148
|
+
*/
|
|
149
|
+
export declare function toolStepOptions(persistence: AgentSessionPersistence, stepType: string, toolCallId?: string): StepOptions;
|
|
150
|
+
export declare function toolStepMovement(persistence: AgentSessionPersistence, stepType: string, toolCallId: string): StepMovement<string>;
|
|
151
|
+
/** Moves to `PollToolTask`; a poll that keeps failing leaves the task running, so the call is recorded by effect. */
|
|
152
|
+
export declare function toolTaskPollMovement(persistence: AgentSessionPersistence, toolCall: AgentToolCallRecord): StepMovement<string>;
|
|
153
|
+
/** Returns the record of a tool's question: `awaiting_answer`, or `failed` when it is blank. */
|
|
154
|
+
export declare function recordToolInputRequest(toolCall: AgentToolCallRecord, request: ToolInputRequested): AgentToolCallRecord;
|
|
155
|
+
/** Returns a final record for a task that cannot be polled: `failed` for a read, else `outcome_unknown`. */
|
|
156
|
+
export declare function recordToolTaskDefect(toolCall: AgentToolCallRecord, error: string): AgentToolCallRecord;
|
|
157
|
+
/** Returns a poll interval in whole seconds from 1 to a day, or `null` when it is not a finite number. */
|
|
158
|
+
export declare function toolTaskPollIntervalSeconds(seconds: unknown): number | null;
|
|
159
|
+
/** Record fields of a call without a pending tool question. */
|
|
160
|
+
export declare const noPendingToolQuestion: {
|
|
161
|
+
readonly inputQuestion: null;
|
|
162
|
+
readonly inputChoices: readonly [];
|
|
163
|
+
readonly inputAllowsFreeText: true;
|
|
164
|
+
};
|
|
165
|
+
/** Moves to `AwaitQuestionAnswer`, which reads the answer count to tell an unraised question from an answer. */
|
|
166
|
+
export declare function questionAnswerMovement(persistence: AgentSessionPersistence, toolCall: AgentToolCallRecord): StepMovement<string>;
|
|
167
|
+
/** An `ask_user` question uses the tool call ID; a tool's `n`-th question appends `-input-<n>`. */
|
|
168
|
+
export declare function questionInterruptId(toolCall: AgentToolCallRecord): string;
|
|
169
|
+
/** The interrupt a waiting tool call answers to: its ID and kind. */
|
|
170
|
+
export interface WaitingToolCallInterrupt {
|
|
171
|
+
readonly interruptId: string;
|
|
172
|
+
readonly kind: AgentInterruptKind;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Records a call that `ToolCallCancellations` woke as cancelled, or waits again. Pass `interrupt` `null` for a
|
|
176
|
+
* durable wait.
|
|
177
|
+
*/
|
|
178
|
+
export declare function cancelWaitingToolCall(transitions: AgentSessionTransitions, context: Context, toolCall: AgentToolCallRecord, interrupt: WaitingToolCallInterrupt | null, waitAgain: StepMovement<string>): StepDecision;
|
|
179
|
+
export declare function isToolInputRequested(outcome: unknown): outcome is ToolInputRequested;
|