@assistant-ui/react-ag-ui 0.0.59 → 0.0.61
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/dist/agUiExtras.d.ts +2 -5
- package/dist/agUiExtras.d.ts.map +1 -1
- package/dist/hooks.d.ts +9 -12
- package/dist/hooks.d.ts.map +1 -1
- package/dist/index.d.ts +7 -5
- package/dist/index.d.ts.map +1 -0
- package/dist/runtime/AgUiThreadRuntimeCore.d.ts +153 -146
- package/dist/runtime/AgUiThreadRuntimeCore.d.ts.map +1 -1
- package/dist/runtime/AgUiThreadRuntimeCore.js +146 -26
- package/dist/runtime/AgUiThreadRuntimeCore.js.map +1 -1
- package/dist/runtime/adapter/conversions.d.ts +54 -56
- package/dist/runtime/adapter/conversions.d.ts.map +1 -1
- package/dist/runtime/adapter/conversions.js +164 -23
- package/dist/runtime/adapter/conversions.js.map +1 -1
- package/dist/runtime/adapter/run-aggregator.d.ts +98 -98
- package/dist/runtime/adapter/run-aggregator.d.ts.map +1 -1
- package/dist/runtime/adapter/run-aggregator.js +35 -2
- package/dist/runtime/adapter/run-aggregator.js.map +1 -1
- package/dist/runtime/adapter/subscriber.d.ts +109 -111
- package/dist/runtime/adapter/subscriber.d.ts.map +1 -1
- package/dist/runtime/adapter/tool-approval.d.ts +7 -9
- package/dist/runtime/adapter/tool-approval.d.ts.map +1 -1
- package/dist/runtime/event-parser.d.ts +5 -8
- package/dist/runtime/event-parser.d.ts.map +1 -1
- package/dist/runtime/interrupt-internals.d.ts +4 -7
- package/dist/runtime/interrupt-internals.d.ts.map +1 -1
- package/dist/runtime/logger.d.ts +4 -7
- package/dist/runtime/logger.d.ts.map +1 -1
- package/dist/runtime/mcp-tool-result.d.ts +7 -10
- package/dist/runtime/mcp-tool-result.d.ts.map +1 -1
- package/dist/runtime/types.d.ts +248 -250
- package/dist/runtime/types.d.ts.map +1 -1
- package/dist/useAgUiRuntime.d.ts +15 -18
- package/dist/useAgUiRuntime.d.ts.map +1 -1
- package/dist/useAgUiRuntime.js +9 -2
- package/dist/useAgUiRuntime.js.map +1 -1
- package/package.json +12 -11
- package/src/runtime/AgUiThreadRuntimeCore.ts +246 -30
- package/src/runtime/adapter/conversions.content.test.ts +56 -0
- package/src/runtime/adapter/conversions.ts +278 -36
- package/src/runtime/adapter/run-aggregator.ts +53 -2
- package/src/useAgUiRuntime.history.test.tsx +93 -2
- package/src/useAgUiRuntime.thread-switch.test.tsx +84 -4
- package/src/useAgUiRuntime.ts +12 -3
- package/src/useAgUiRuntime.voice.test.tsx +402 -0
package/dist/agUiExtras.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { AgUiRuntimeExtras } from "./runtime/types.js";
|
|
2
|
-
|
|
3
|
-
declare const agUiExtras: import("@assistant-ui/core/react").RuntimeExtras<AgUiRuntimeExtras>;
|
|
4
|
-
//#endregion
|
|
5
|
-
export { agUiExtras };
|
|
1
|
+
import type { AgUiRuntimeExtras } from "./runtime/types.js";
|
|
2
|
+
export declare const agUiExtras: import("@assistant-ui/core/react").RuntimeExtras<AgUiRuntimeExtras>;
|
|
6
3
|
//# sourceMappingURL=agUiExtras.d.ts.map
|
package/dist/agUiExtras.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agUiExtras.d.ts","
|
|
1
|
+
{"version":3,"file":"agUiExtras.d.ts","sourceRoot":"","sources":["../src/agUiExtras.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,2BAAwB;AAEzD,eAAO,MAAM,UAAU,qEACmC,CAAC"}
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
//#region src/hooks.d.ts
|
|
1
|
+
import type { CreateAppendMessage } from "@assistant-ui/core";
|
|
2
|
+
import type { ReadonlyJSONValue } from "assistant-stream/utils";
|
|
3
|
+
import type { AgUiInterrupt, AgUiResumeEntry } from "./runtime/types.js";
|
|
5
4
|
/**
|
|
6
5
|
* Read the pending AG-UI interrupts on the current thread. Returns an empty
|
|
7
6
|
* array when no interrupts are pending, so consumers can `.map` without a guard.
|
|
8
7
|
*/
|
|
9
|
-
declare const useAgUiInterrupts: () => readonly AgUiInterrupt[];
|
|
8
|
+
export declare const useAgUiInterrupts: () => readonly AgUiInterrupt[];
|
|
10
9
|
/**
|
|
11
10
|
* Returns a stable function that sends an A2UI action back to the agent and
|
|
12
11
|
* resumes the run.
|
|
13
12
|
*/
|
|
14
|
-
declare const useAgUiSendA2uiAction: () => (action: Record<string, unknown>) => void;
|
|
13
|
+
export declare const useAgUiSendA2uiAction: () => (action: Record<string, unknown>) => void;
|
|
15
14
|
/**
|
|
16
15
|
* Returns a function that submits responses (each `resolved` or `cancelled`)
|
|
17
16
|
* for the pending AG-UI interrupts and resumes the run.
|
|
18
17
|
*/
|
|
19
|
-
declare const useAgUiSubmitInterruptResponses: () => (responses: readonly AgUiResumeEntry[]) => Promise<void>;
|
|
18
|
+
export declare const useAgUiSubmitInterruptResponses: () => (responses: readonly AgUiResumeEntry[]) => Promise<void>;
|
|
20
19
|
/**
|
|
21
20
|
* Returns a function that discards the pending AG-UI interrupts or pending
|
|
22
21
|
* client-side tool calls and appends the given user message, starting a fresh
|
|
@@ -30,9 +29,7 @@ declare const useAgUiSubmitInterruptResponses: () => (responses: readonly AgUiRe
|
|
|
30
29
|
* `autoCancelPendingToolCalls` runtime option, this hook cancels regardless
|
|
31
30
|
* of that option's value.
|
|
32
31
|
*/
|
|
33
|
-
declare const useAgUiSteerAway: () => (message: CreateAppendMessage, responses?: readonly AgUiResumeEntry[]) => Promise<void>;
|
|
34
|
-
declare const useAgUiState: <TState = ReadonlyJSONValue>() => TState | undefined;
|
|
35
|
-
declare const useAgUiSetState: <TState = ReadonlyJSONValue>() => (next: TState | ((prev: TState | undefined) => TState)) => void;
|
|
36
|
-
//#endregion
|
|
37
|
-
export { useAgUiInterrupts, useAgUiSendA2uiAction, useAgUiSetState, useAgUiState, useAgUiSteerAway, useAgUiSubmitInterruptResponses };
|
|
32
|
+
export declare const useAgUiSteerAway: () => (message: CreateAppendMessage, responses?: readonly AgUiResumeEntry[]) => Promise<void>;
|
|
33
|
+
export declare const useAgUiState: <TState = ReadonlyJSONValue>() => TState | undefined;
|
|
34
|
+
export declare const useAgUiSetState: <TState = ReadonlyJSONValue>() => (next: TState | ((prev: TState | undefined) => TState)) => void;
|
|
38
35
|
//# sourceMappingURL=hooks.d.ts.map
|
package/dist/hooks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,2BAAwB;AAItE;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAAO,SAAS,aAAa,EACJ,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,iBAGrB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,IAItC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,+BAA+B,SAElC,WAAW,SAAS,eAAe,EAAE,KAAG,OAAO,CAAC,IAAI,CAE7D,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,SAGzB,SAAS,mBAAmB,EAC5B,YAAY,SAAS,eAAe,EAAE,KACrC,OAAO,CAAC,IAAI,CAChB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,MAAM,GAAG,iBAAiB,OACnD,MAAM,GACN,SAC6D,CAAC;AAElE,eAAO,MAAM,eAAe,GAAI,MAAM,GAAG,iBAAiB,QAEhD,MAAM,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,KAAK,MAAM,CAAC,KAAG,IAQjE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
1
|
+
export { useAgUiRuntime } from "./useAgUiRuntime.js";
|
|
2
|
+
export type { AgUiAssistantRuntime } from "./useAgUiRuntime.js";
|
|
3
|
+
export { useAgUiInterrupts, useAgUiSendA2uiAction, useAgUiSubmitInterruptResponses, useAgUiSteerAway, useAgUiState, useAgUiSetState, } from "./hooks.js";
|
|
4
|
+
export { fromAgUiMessages, toAgUiMessages, } from "./runtime/adapter/conversions.js";
|
|
5
|
+
export type { AgUiMessage, FromAgUiMessagesOptions, } from "./runtime/adapter/conversions.js";
|
|
6
|
+
export type { AgUiInterrupt, AgUiInterruptReason, AgUiResumeEntry, AgUiResumeTranscript, AgUiRunFinishedOutcome, UseAgUiRuntimeOptions, UseAgUiRuntimeAdapters, UseAgUiThreadListAdapter, } from "./runtime/types.js";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,4BAAyB;AAClD,YAAY,EAAE,oBAAoB,EAAE,4BAAyB;AAC7D,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,+BAA+B,EAC/B,gBAAgB,EAChB,YAAY,EACZ,eAAe,GAChB,mBAAgB;AACjB,OAAO,EACL,gBAAgB,EAChB,cAAc,GACf,yCAAsC;AACvC,YAAY,EACV,WAAW,EACX,uBAAuB,GACxB,yCAAsC;AACvC,YAAY,EACV,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,GACzB,2BAAwB"}
|
|
@@ -1,154 +1,161 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { ReadonlyJSONValue } from "assistant-stream/utils";
|
|
6
|
-
//#region src/runtime/AgUiThreadRuntimeCore.d.ts
|
|
1
|
+
import type { AddToolResultOptions, AppendMessage, CreateAppendMessage, AssistantRuntime, ChatModelRunOptions, ChatModelRunResult, ExportedMessageRepository, RespondToToolApprovalOptions, ThreadHistoryAdapter, ThreadMessage, Unstable_ToolInteraction } from "@assistant-ui/core";
|
|
2
|
+
import type { AbstractAgent } from "@ag-ui/client";
|
|
3
|
+
import type { Logger } from "./logger.js";
|
|
4
|
+
import type { AgUiInterrupt, AgUiResumeEntry, AgUiResumeTranscript } from "./types.js";
|
|
5
|
+
import type { ReadonlyJSONValue } from "assistant-stream/utils";
|
|
7
6
|
type RunConfig = NonNullable<AppendMessage["runConfig"]>;
|
|
8
7
|
type ResumeStream = (options: ChatModelRunOptions) => AsyncGenerator<ChatModelRunResult, void, unknown>;
|
|
9
8
|
type ResumeRunConfig = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
parentId: string | null;
|
|
10
|
+
sourceId: string | null;
|
|
11
|
+
runConfig: RunConfig;
|
|
12
|
+
stream?: ResumeStream;
|
|
14
13
|
};
|
|
15
14
|
type CoreOptions = {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
agent: AbstractAgent;
|
|
16
|
+
logger: Logger;
|
|
17
|
+
showThinking: boolean;
|
|
18
|
+
resumeTranscript?: AgUiResumeTranscript | undefined;
|
|
19
|
+
autoCancelPendingToolCalls?: boolean | undefined;
|
|
20
|
+
onError?: (error: Error) => void;
|
|
21
|
+
onCancel?: () => void;
|
|
22
|
+
history?: ThreadHistoryAdapter;
|
|
23
|
+
notifyUpdate: () => void;
|
|
25
24
|
};
|
|
26
|
-
declare class AgUiThreadRuntimeCore {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
25
|
+
export declare class AgUiThreadRuntimeCore {
|
|
26
|
+
private agent;
|
|
27
|
+
private logger;
|
|
28
|
+
private showThinking;
|
|
29
|
+
private resumeTranscript;
|
|
30
|
+
private autoCancelPendingToolCalls;
|
|
31
|
+
private onError;
|
|
32
|
+
private onCancel;
|
|
33
|
+
private readonly notifyUpdate;
|
|
34
|
+
private readonly reportedErrors;
|
|
35
|
+
private runtime;
|
|
36
|
+
private readonly session;
|
|
37
|
+
private isRunningFlag;
|
|
38
|
+
private abortController;
|
|
39
|
+
private activeRunAgent;
|
|
40
|
+
private stateSnapshot;
|
|
41
|
+
private history;
|
|
42
|
+
private lastRunConfig;
|
|
43
|
+
private readonly assistantHistoryParents;
|
|
44
|
+
private readonly snapshotHistoryIds;
|
|
45
|
+
private readonly persistedHistoryIds;
|
|
46
|
+
private readonly historyWrites;
|
|
47
|
+
private _isLoading;
|
|
48
|
+
private _loadPromise;
|
|
49
|
+
private _loadRequested;
|
|
50
|
+
private pendingResume;
|
|
51
|
+
private pendingA2uiResumeOwner;
|
|
52
|
+
private pendingA2uiAction;
|
|
53
|
+
constructor(options: CoreOptions);
|
|
54
|
+
updateOptions(options: Omit<CoreOptions, "notifyUpdate">): void;
|
|
55
|
+
attachRuntime(runtime: AssistantRuntime): void;
|
|
56
|
+
detachRuntime(): void;
|
|
57
|
+
getMessages(): readonly ThreadMessage[];
|
|
58
|
+
getMessageRepository(): ExportedMessageRepository;
|
|
59
|
+
getState(): ReadonlyJSONValue | undefined;
|
|
60
|
+
isRunning(): boolean;
|
|
61
|
+
get isLoading(): boolean;
|
|
62
|
+
__internal_load(): Promise<void>;
|
|
63
|
+
append(message: AppendMessage): Promise<void>;
|
|
64
|
+
appendVoiceTranscript(message: ThreadMessage): void;
|
|
65
|
+
private maybeAutoCancelPendingToolCalls;
|
|
66
|
+
private appendEntry;
|
|
67
|
+
edit(message: AppendMessage): Promise<void>;
|
|
68
|
+
reload(parentId: string | null, config?: {
|
|
69
|
+
runConfig?: RunConfig;
|
|
70
|
+
}): Promise<void>;
|
|
71
|
+
cancel(): Promise<void>;
|
|
72
|
+
private abortActiveRun;
|
|
73
|
+
private supersedeActiveRun;
|
|
74
|
+
resume(config: ResumeRunConfig): Promise<void>;
|
|
75
|
+
resumeInFlightRun(messages: readonly ThreadMessage[]): Promise<void>;
|
|
76
|
+
private assertNoPendingInterrupts;
|
|
77
|
+
private findRequiresActionAssistant;
|
|
78
|
+
getPendingInterrupts(): {
|
|
79
|
+
messageId: string;
|
|
80
|
+
interrupts: readonly AgUiInterrupt[];
|
|
81
|
+
} | null;
|
|
82
|
+
getPendingToolCalls(): {
|
|
83
|
+
messageId: string;
|
|
84
|
+
toolCallIds: string[];
|
|
85
|
+
} | null;
|
|
86
|
+
submitInterruptResponses(responses: readonly AgUiResumeEntry[]): Promise<void>;
|
|
87
|
+
/**
|
|
88
|
+
* Resumes with an already validated resume array. Answerability is checked
|
|
89
|
+
* once per submission: re-checking here would let a clock crossing reject a
|
|
90
|
+
* decision this runtime has already recorded, stranding the gate decided and
|
|
91
|
+
* unretryable.
|
|
92
|
+
*/
|
|
93
|
+
private resumeWithResponses;
|
|
94
|
+
/**
|
|
95
|
+
* A rejected decision reaches the caller through the approval seam, and
|
|
96
|
+
* `onError` in addition, because a consumer watching only the runtime would
|
|
97
|
+
* otherwise miss it. A failure raised by the resumed run itself was already
|
|
98
|
+
* reported by `startRun` before it rethrew, so reporting it here again would
|
|
99
|
+
* give the consumer two notifications for one failure.
|
|
100
|
+
*/
|
|
101
|
+
reportError(error: unknown): void;
|
|
102
|
+
private assertInterruptsAnswerable;
|
|
103
|
+
respondToToolApproval(options: RespondToToolApprovalOptions): Promise<void>;
|
|
104
|
+
steerAway(message: CreateAppendMessage, responses?: readonly AgUiResumeEntry[]): Promise<void>;
|
|
105
|
+
private resolveSteerAwayResume;
|
|
106
|
+
private collectInterruptResponses;
|
|
107
|
+
private toAppendMessage;
|
|
108
|
+
private clearPendingInterrupts;
|
|
109
|
+
findMessageIdForToolCall(toolCallId: string): string | undefined;
|
|
110
|
+
private cancelUnresolvedToolCalls;
|
|
111
|
+
addToolResult(options: AddToolResultOptions): void;
|
|
112
|
+
recordToolInteraction(options: {
|
|
113
|
+
messageId: string;
|
|
114
|
+
toolCallId: string;
|
|
115
|
+
interaction: Unstable_ToolInteraction;
|
|
116
|
+
}): Promise<void>;
|
|
117
|
+
sendA2uiAction(action: Record<string, unknown>): void;
|
|
118
|
+
private maybeResumeAfterToolResults;
|
|
119
|
+
private maybeCompleteAfterToolResults;
|
|
120
|
+
private startResumeRun;
|
|
121
|
+
applyExternalMessages(messages: readonly ThreadMessage[]): void;
|
|
122
|
+
loadExternalState(state: ReadonlyJSONValue): void;
|
|
123
|
+
setState(next: ReadonlyJSONValue | ((prev: ReadonlyJSONValue | undefined) => ReadonlyJSONValue)): void;
|
|
124
|
+
resetState(): void;
|
|
125
|
+
resetThreadState(): void;
|
|
126
|
+
private startRun;
|
|
127
|
+
private consumeResumeStream;
|
|
128
|
+
private buildRunInput;
|
|
129
|
+
/**
|
|
130
|
+
* An anchor the thread no longer carries falls back to the whole transcript.
|
|
131
|
+
* The anchor is missing exactly when a snapshot import replaced the messages
|
|
132
|
+
* this resume was raised against, and a host that expects a delta tolerates
|
|
133
|
+
* being told more than it knows, while one rebuilding the run from the
|
|
134
|
+
* transcript cannot recover from being told less.
|
|
135
|
+
*/
|
|
136
|
+
private selectRunMessages;
|
|
137
|
+
private clearDeferredContinuations;
|
|
138
|
+
private setRunning;
|
|
139
|
+
private finishRun;
|
|
140
|
+
private insertAssistantPlaceholder;
|
|
141
|
+
private reassignAssistantId;
|
|
142
|
+
private updateAssistantMessage;
|
|
143
|
+
private preserveToolResults;
|
|
144
|
+
private preserveToolInteractions;
|
|
145
|
+
private mergeAssistantMetadata;
|
|
146
|
+
private handleEvent;
|
|
147
|
+
private updateActiveAssistantState;
|
|
148
|
+
private applyCrossRunToolResult;
|
|
149
|
+
private applyCrossRunActivitySnapshot;
|
|
150
|
+
private importMessagesSnapshot;
|
|
151
|
+
private toThreadMessage;
|
|
152
|
+
private isTerminalStatus;
|
|
153
|
+
private isPersistableStatus;
|
|
154
|
+
private recordHistoryEntry;
|
|
155
|
+
private markPendingAssistantHistory;
|
|
156
|
+
private persistAssistantHistory;
|
|
157
|
+
private appendHistoryItem;
|
|
158
|
+
private chainHistoryWrite;
|
|
151
159
|
}
|
|
152
|
-
|
|
153
|
-
export { AgUiThreadRuntimeCore };
|
|
160
|
+
export {};
|
|
154
161
|
//# sourceMappingURL=AgUiThreadRuntimeCore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgUiThreadRuntimeCore.d.ts","
|
|
1
|
+
{"version":3,"file":"AgUiThreadRuntimeCore.d.ts","sourceRoot":"","sources":["../../src/runtime/AgUiThreadRuntimeCore.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,yBAAyB,EAEzB,4BAA4B,EAE5B,oBAAoB,EACpB,aAAa,EAEb,wBAAwB,EACzB,MAAM,oBAAoB,CAAC;AAQ5B,OAAO,KAAK,EACV,aAAa,EAId,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,MAAM,EAAE,oBAAiB;AAEvC,OAAO,KAAK,EAEV,aAAa,EACb,eAA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