@dxos/assistant 0.8.4-main.fffef41 → 0.8.4-staging.60fe92afc8
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 +102 -5
- package/README.md +2 -1
- package/dist/lib/{browser → neutral}/extraction/index.mjs +42 -59
- package/dist/lib/neutral/extraction/index.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +1886 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/types/src/extraction/extraction-ner-function/index.d.ts +0 -1
- package/dist/types/src/extraction/extraction-ner-function/index.d.ts.map +1 -1
- package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.d.ts.map +1 -1
- package/dist/types/src/extraction/extraction.d.ts +1649 -317
- package/dist/types/src/extraction/extraction.d.ts.map +1 -1
- package/dist/types/src/extraction/index.d.ts +0 -1
- package/dist/types/src/extraction/index.d.ts.map +1 -1
- package/dist/types/src/extraction/quotes.d.ts +2 -2
- package/dist/types/src/extraction/quotes.d.ts.map +1 -1
- package/dist/types/src/functions/services.d.ts +14 -16
- package/dist/types/src/functions/services.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -5
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/request/AiRequest.d.ts +308 -0
- package/dist/types/src/request/AiRequest.d.ts.map +1 -0
- package/dist/types/src/{session → request}/artifact-diff.d.ts +4 -4
- package/dist/types/src/request/artifact-diff.d.ts.map +1 -0
- package/dist/types/src/request/format.d.ts +15 -0
- package/dist/types/src/request/format.d.ts.map +1 -0
- package/dist/types/src/request/index.d.ts +4 -0
- package/dist/types/src/request/index.d.ts.map +1 -0
- package/dist/types/src/{session → request}/observer.d.ts +4 -3
- package/dist/types/src/request/observer.d.ts.map +1 -0
- package/dist/types/src/{session → request}/version-pin.d.ts +4 -4
- package/dist/types/src/request/version-pin.d.ts.map +1 -0
- package/dist/types/src/session/AiContext.d.ts +178 -0
- package/dist/types/src/session/AiContext.d.ts.map +1 -0
- package/dist/types/src/session/AiContext.test.d.ts +2 -0
- package/dist/types/src/session/AiContext.test.d.ts.map +1 -0
- package/dist/types/src/session/AiSession.d.ts +79 -0
- package/dist/types/src/session/AiSession.d.ts.map +1 -0
- package/dist/types/src/session/AiSession.test.d.ts +2 -0
- package/dist/types/src/session/AiSession.test.d.ts.map +1 -0
- package/dist/types/src/session/SessionLink.d.ts +17 -0
- package/dist/types/src/session/SessionLink.d.ts.map +1 -0
- package/dist/types/src/session/SessionLoader.d.ts +15 -0
- package/dist/types/src/session/SessionLoader.d.ts.map +1 -0
- package/dist/types/src/session/SessionLoader.test.d.ts +2 -0
- package/dist/types/src/session/SessionLoader.test.d.ts.map +1 -0
- package/dist/types/src/session/index.d.ts +4 -5
- package/dist/types/src/session/index.d.ts.map +1 -1
- package/dist/types/src/session/toolkit.d.ts +10 -9
- package/dist/types/src/session/toolkit.d.ts.map +1 -1
- package/dist/types/src/templates/system.d.ts +12 -3
- package/dist/types/src/templates/system.d.ts.map +1 -1
- package/dist/types/src/util/artifact.d.ts +18 -0
- package/dist/types/src/util/artifact.d.ts.map +1 -0
- package/dist/types/src/{diff.d.ts → util/diff.d.ts} +4 -2
- package/dist/types/src/util/diff.d.ts.map +1 -0
- package/dist/types/src/{diff.test.d.ts.map → util/diff.test.d.ts.map} +1 -1
- package/dist/types/src/util/error-handling.d.ts.map +1 -0
- package/dist/types/src/{errors.d.ts → util/errors.d.ts} +24 -28
- package/dist/types/src/util/errors.d.ts.map +1 -0
- package/dist/types/src/{execution-graph.d.ts → util/execution-graph.d.ts} +2 -2
- package/dist/types/src/util/execution-graph.d.ts.map +1 -0
- package/dist/types/src/util/execution-graph.test.d.ts.map +1 -0
- package/dist/types/src/util/index.d.ts +7 -0
- package/dist/types/src/util/index.d.ts.map +1 -0
- package/dist/types/src/util/tracing.d.ts +296 -0
- package/dist/types/src/util/tracing.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +36 -44
- package/src/extraction/extraction-ner-function/index.ts +0 -1
- package/src/extraction/extraction.ts +47 -18
- package/src/extraction/index.ts +0 -1
- package/src/extraction/quotes.test.ts +2 -2
- package/src/extraction/quotes.ts +6 -8
- package/src/functions/services.ts +129 -63
- package/src/index.ts +2 -5
- package/src/request/AiRequest.ts +387 -0
- package/src/{session → request}/artifact-diff.ts +4 -4
- package/src/{session → request}/format.ts +28 -25
- package/src/request/index.ts +8 -0
- package/src/{session → request}/observer.ts +4 -1
- package/src/{session → request}/version-pin.ts +6 -5
- package/src/session/AiContext.test.ts +49 -0
- package/src/session/AiContext.ts +420 -0
- package/src/session/AiSession.test.ts +111 -0
- package/src/session/AiSession.ts +328 -0
- package/src/session/SessionLink.ts +23 -0
- package/src/session/SessionLoader.test.ts +115 -0
- package/src/session/SessionLoader.ts +55 -0
- package/src/session/index.ts +4 -5
- package/src/session/toolkit.ts +27 -28
- package/src/templates/instructions/format.tpl +0 -4
- package/src/templates/instructions/system.tpl +50 -2
- package/src/templates/system.ts +7 -6
- package/src/util/artifact.ts +96 -0
- package/src/util/diff.test.ts +74 -0
- package/src/{diff.ts → util/diff.ts} +14 -5
- package/src/{session → util}/error-handling.ts +3 -2
- package/src/util/errors.ts +15 -0
- package/src/{execution-graph.test.ts → util/execution-graph.test.ts} +4 -4
- package/src/{execution-graph.ts → util/execution-graph.ts} +30 -19
- package/src/util/index.ts +10 -0
- package/src/util/tracing.ts +60 -0
- package/dist/lib/browser/extraction/index.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -1290
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +0 -11
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +0 -7
- package/dist/lib/node-esm/extraction/index.mjs +0 -226
- package/dist/lib/node-esm/extraction/index.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -1291
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/types/src/conversation/context.d.ts +0 -103
- package/dist/types/src/conversation/context.d.ts.map +0 -1
- package/dist/types/src/conversation/conversation.d.ts +0 -41
- package/dist/types/src/conversation/conversation.d.ts.map +0 -1
- package/dist/types/src/conversation/index.d.ts +0 -3
- package/dist/types/src/conversation/index.d.ts.map +0 -1
- package/dist/types/src/diff.d.ts.map +0 -1
- package/dist/types/src/errors.d.ts.map +0 -1
- package/dist/types/src/execution-graph.d.ts.map +0 -1
- package/dist/types/src/execution-graph.test.d.ts.map +0 -1
- package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts +0 -4
- package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts.map +0 -1
- package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.test.d.ts +0 -2
- package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.test.d.ts.map +0 -1
- package/dist/types/src/extraction/extraction-llm-function/index.d.ts +0 -2
- package/dist/types/src/extraction/extraction-llm-function/index.d.ts.map +0 -1
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts +0 -345
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts.map +0 -1
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.test.d.ts +0 -2
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.test.d.ts.map +0 -1
- package/dist/types/src/session/GenericToolkit.d.ts +0 -84
- package/dist/types/src/session/GenericToolkit.d.ts.map +0 -1
- package/dist/types/src/session/artifact-diff.d.ts.map +0 -1
- package/dist/types/src/session/error-handling.d.ts.map +0 -1
- package/dist/types/src/session/format.d.ts +0 -12
- package/dist/types/src/session/format.d.ts.map +0 -1
- package/dist/types/src/session/format.test.d.ts +0 -2
- package/dist/types/src/session/format.test.d.ts.map +0 -1
- package/dist/types/src/session/observer.d.ts.map +0 -1
- package/dist/types/src/session/session.d.ts +0 -51
- package/dist/types/src/session/session.d.ts.map +0 -1
- package/dist/types/src/session/session.test.d.ts +0 -2
- package/dist/types/src/session/session.test.d.ts.map +0 -1
- package/dist/types/src/session/version-pin.d.ts.map +0 -1
- package/dist/types/src/types/artifact.d.ts +0 -20
- package/dist/types/src/types/artifact.d.ts.map +0 -1
- package/dist/types/src/types/index.d.ts +0 -2
- package/dist/types/src/types/index.d.ts.map +0 -1
- package/src/conversation/context.ts +0 -186
- package/src/conversation/conversation.ts +0 -128
- package/src/conversation/index.ts +0 -6
- package/src/diff.test.ts +0 -43
- package/src/errors.ts +0 -15
- package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +0 -84
- package/src/extraction/extraction-llm-function/extraction-llm-function.ts +0 -62
- package/src/extraction/extraction-llm-function/index.ts +0 -5
- package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +0 -116
- package/src/extraction/extraction-ner-function/extraction-ner-function.ts +0 -56
- package/src/session/GenericToolkit.ts +0 -130
- package/src/session/format.test.ts +0 -61
- package/src/session/session.conversations.json +0 -1
- package/src/session/session.test.ts +0 -149
- package/src/session/session.ts +0 -213
- package/src/types/artifact.ts +0 -71
- package/src/types/index.ts +0 -5
- /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs +0 -0
- /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs.map +0 -0
- /package/dist/types/src/{diff.test.d.ts → util/diff.test.d.ts} +0 -0
- /package/dist/types/src/{session → util}/error-handling.d.ts +0 -0
- /package/dist/types/src/{execution-graph.test.d.ts → util/execution-graph.test.d.ts} +0 -0
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import { Trace } from '@dxos/compute';
|
|
2
|
+
import { Obj } from '@dxos/echo';
|
|
3
|
+
/**
|
|
4
|
+
* Partial content block emitted.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PartialBlock: Trace.EventType<{
|
|
7
|
+
readonly messageId: string;
|
|
8
|
+
readonly role: "assistant" | "tool" | "user";
|
|
9
|
+
readonly block: {
|
|
10
|
+
readonly _tag: "anchor";
|
|
11
|
+
readonly pending?: boolean | undefined;
|
|
12
|
+
readonly objectId: string;
|
|
13
|
+
readonly version: unknown;
|
|
14
|
+
} | {
|
|
15
|
+
readonly _tag: "file";
|
|
16
|
+
readonly pending?: boolean | undefined;
|
|
17
|
+
readonly url: string;
|
|
18
|
+
readonly name?: string | undefined;
|
|
19
|
+
readonly mediaType?: string | undefined;
|
|
20
|
+
} | {
|
|
21
|
+
readonly _tag: "image";
|
|
22
|
+
readonly pending?: boolean | undefined;
|
|
23
|
+
readonly id?: string | undefined;
|
|
24
|
+
readonly source?: {
|
|
25
|
+
readonly type: "base64";
|
|
26
|
+
readonly mediaType: string;
|
|
27
|
+
readonly data: string;
|
|
28
|
+
} | {
|
|
29
|
+
readonly type: "http";
|
|
30
|
+
readonly url: string;
|
|
31
|
+
} | undefined;
|
|
32
|
+
} | {
|
|
33
|
+
readonly _tag: "json";
|
|
34
|
+
readonly pending?: boolean | undefined;
|
|
35
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
36
|
+
readonly data: string;
|
|
37
|
+
} | {
|
|
38
|
+
readonly _tag: "proposal";
|
|
39
|
+
readonly pending?: boolean | undefined;
|
|
40
|
+
readonly text: string;
|
|
41
|
+
} | {
|
|
42
|
+
readonly _tag: "reasoning";
|
|
43
|
+
readonly pending?: boolean | undefined;
|
|
44
|
+
readonly reasoningText?: string | undefined;
|
|
45
|
+
readonly redactedText?: string | undefined;
|
|
46
|
+
readonly signature?: string | undefined;
|
|
47
|
+
} | {
|
|
48
|
+
readonly _tag: "reference";
|
|
49
|
+
readonly pending?: boolean | undefined;
|
|
50
|
+
readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
|
|
51
|
+
} | {
|
|
52
|
+
readonly _tag: "select";
|
|
53
|
+
readonly pending?: boolean | undefined;
|
|
54
|
+
readonly options: string[];
|
|
55
|
+
} | {
|
|
56
|
+
readonly _tag: "stats";
|
|
57
|
+
readonly pending?: boolean | undefined;
|
|
58
|
+
readonly mimeType?: string | undefined;
|
|
59
|
+
readonly message?: string | undefined;
|
|
60
|
+
readonly model?: string | undefined;
|
|
61
|
+
readonly usage?: {
|
|
62
|
+
readonly inputTokens?: number | undefined;
|
|
63
|
+
readonly outputTokens?: number | undefined;
|
|
64
|
+
readonly totalTokens?: number | undefined;
|
|
65
|
+
} | undefined;
|
|
66
|
+
readonly toolCalls?: number | undefined;
|
|
67
|
+
readonly errors?: number | undefined;
|
|
68
|
+
readonly duration?: number | undefined;
|
|
69
|
+
} | {
|
|
70
|
+
readonly _tag: "status";
|
|
71
|
+
readonly pending?: boolean | undefined;
|
|
72
|
+
readonly statusText: string;
|
|
73
|
+
} | {
|
|
74
|
+
readonly _tag: "suggestion";
|
|
75
|
+
readonly pending?: boolean | undefined;
|
|
76
|
+
readonly text: string;
|
|
77
|
+
} | {
|
|
78
|
+
readonly _tag: "summary";
|
|
79
|
+
readonly pending?: boolean | undefined;
|
|
80
|
+
readonly content: string;
|
|
81
|
+
} | {
|
|
82
|
+
readonly _tag: "text";
|
|
83
|
+
readonly pending?: boolean | undefined;
|
|
84
|
+
readonly mimeType?: string | undefined;
|
|
85
|
+
readonly text: string;
|
|
86
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
87
|
+
} | {
|
|
88
|
+
readonly _tag: "toolCall";
|
|
89
|
+
readonly pending?: boolean | undefined;
|
|
90
|
+
readonly toolCallId: string;
|
|
91
|
+
readonly name: string;
|
|
92
|
+
readonly input: string;
|
|
93
|
+
readonly providerExecuted: boolean;
|
|
94
|
+
readonly operationKey?: string | undefined;
|
|
95
|
+
readonly operationName?: string | undefined;
|
|
96
|
+
readonly operationIcon?: string | undefined;
|
|
97
|
+
} | {
|
|
98
|
+
readonly _tag: "toolResult";
|
|
99
|
+
readonly pending?: boolean | undefined;
|
|
100
|
+
readonly toolCallId: string;
|
|
101
|
+
readonly name: string;
|
|
102
|
+
readonly result?: string | {
|
|
103
|
+
readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
|
|
104
|
+
readonly content: readonly ({
|
|
105
|
+
readonly _tag: "text";
|
|
106
|
+
readonly pending?: boolean | undefined;
|
|
107
|
+
readonly mimeType?: string | undefined;
|
|
108
|
+
readonly text: string;
|
|
109
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
110
|
+
} | {
|
|
111
|
+
readonly _tag: "image";
|
|
112
|
+
readonly pending?: boolean | undefined;
|
|
113
|
+
readonly id?: string | undefined;
|
|
114
|
+
readonly source?: {
|
|
115
|
+
readonly type: "base64";
|
|
116
|
+
readonly mediaType: string;
|
|
117
|
+
readonly data: string;
|
|
118
|
+
} | {
|
|
119
|
+
readonly type: "http";
|
|
120
|
+
readonly url: string;
|
|
121
|
+
} | undefined;
|
|
122
|
+
} | {
|
|
123
|
+
readonly _tag: "file";
|
|
124
|
+
readonly pending?: boolean | undefined;
|
|
125
|
+
readonly url: string;
|
|
126
|
+
readonly name?: string | undefined;
|
|
127
|
+
readonly mediaType?: string | undefined;
|
|
128
|
+
})[];
|
|
129
|
+
} | undefined;
|
|
130
|
+
readonly error?: string | undefined;
|
|
131
|
+
readonly providerExecuted: boolean;
|
|
132
|
+
} | {
|
|
133
|
+
readonly _tag: "toolkit";
|
|
134
|
+
readonly pending?: boolean | undefined;
|
|
135
|
+
} | {
|
|
136
|
+
readonly _tag: "transcript";
|
|
137
|
+
readonly pending?: boolean | undefined;
|
|
138
|
+
readonly started: string;
|
|
139
|
+
readonly text: string;
|
|
140
|
+
};
|
|
141
|
+
}>;
|
|
142
|
+
/**
|
|
143
|
+
* Complete content block emitted.
|
|
144
|
+
*/
|
|
145
|
+
export declare const CompleteBlock: Trace.EventType<{
|
|
146
|
+
readonly messageId: string;
|
|
147
|
+
readonly role: "assistant" | "tool" | "user";
|
|
148
|
+
readonly block: {
|
|
149
|
+
readonly _tag: "anchor";
|
|
150
|
+
readonly pending?: boolean | undefined;
|
|
151
|
+
readonly objectId: string;
|
|
152
|
+
readonly version: unknown;
|
|
153
|
+
} | {
|
|
154
|
+
readonly _tag: "file";
|
|
155
|
+
readonly pending?: boolean | undefined;
|
|
156
|
+
readonly url: string;
|
|
157
|
+
readonly name?: string | undefined;
|
|
158
|
+
readonly mediaType?: string | undefined;
|
|
159
|
+
} | {
|
|
160
|
+
readonly _tag: "image";
|
|
161
|
+
readonly pending?: boolean | undefined;
|
|
162
|
+
readonly id?: string | undefined;
|
|
163
|
+
readonly source?: {
|
|
164
|
+
readonly type: "base64";
|
|
165
|
+
readonly mediaType: string;
|
|
166
|
+
readonly data: string;
|
|
167
|
+
} | {
|
|
168
|
+
readonly type: "http";
|
|
169
|
+
readonly url: string;
|
|
170
|
+
} | undefined;
|
|
171
|
+
} | {
|
|
172
|
+
readonly _tag: "json";
|
|
173
|
+
readonly pending?: boolean | undefined;
|
|
174
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
175
|
+
readonly data: string;
|
|
176
|
+
} | {
|
|
177
|
+
readonly _tag: "proposal";
|
|
178
|
+
readonly pending?: boolean | undefined;
|
|
179
|
+
readonly text: string;
|
|
180
|
+
} | {
|
|
181
|
+
readonly _tag: "reasoning";
|
|
182
|
+
readonly pending?: boolean | undefined;
|
|
183
|
+
readonly reasoningText?: string | undefined;
|
|
184
|
+
readonly redactedText?: string | undefined;
|
|
185
|
+
readonly signature?: string | undefined;
|
|
186
|
+
} | {
|
|
187
|
+
readonly _tag: "reference";
|
|
188
|
+
readonly pending?: boolean | undefined;
|
|
189
|
+
readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
|
|
190
|
+
} | {
|
|
191
|
+
readonly _tag: "select";
|
|
192
|
+
readonly pending?: boolean | undefined;
|
|
193
|
+
readonly options: string[];
|
|
194
|
+
} | {
|
|
195
|
+
readonly _tag: "stats";
|
|
196
|
+
readonly pending?: boolean | undefined;
|
|
197
|
+
readonly mimeType?: string | undefined;
|
|
198
|
+
readonly message?: string | undefined;
|
|
199
|
+
readonly model?: string | undefined;
|
|
200
|
+
readonly usage?: {
|
|
201
|
+
readonly inputTokens?: number | undefined;
|
|
202
|
+
readonly outputTokens?: number | undefined;
|
|
203
|
+
readonly totalTokens?: number | undefined;
|
|
204
|
+
} | undefined;
|
|
205
|
+
readonly toolCalls?: number | undefined;
|
|
206
|
+
readonly errors?: number | undefined;
|
|
207
|
+
readonly duration?: number | undefined;
|
|
208
|
+
} | {
|
|
209
|
+
readonly _tag: "status";
|
|
210
|
+
readonly pending?: boolean | undefined;
|
|
211
|
+
readonly statusText: string;
|
|
212
|
+
} | {
|
|
213
|
+
readonly _tag: "suggestion";
|
|
214
|
+
readonly pending?: boolean | undefined;
|
|
215
|
+
readonly text: string;
|
|
216
|
+
} | {
|
|
217
|
+
readonly _tag: "summary";
|
|
218
|
+
readonly pending?: boolean | undefined;
|
|
219
|
+
readonly content: string;
|
|
220
|
+
} | {
|
|
221
|
+
readonly _tag: "text";
|
|
222
|
+
readonly pending?: boolean | undefined;
|
|
223
|
+
readonly mimeType?: string | undefined;
|
|
224
|
+
readonly text: string;
|
|
225
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
226
|
+
} | {
|
|
227
|
+
readonly _tag: "toolCall";
|
|
228
|
+
readonly pending?: boolean | undefined;
|
|
229
|
+
readonly toolCallId: string;
|
|
230
|
+
readonly name: string;
|
|
231
|
+
readonly input: string;
|
|
232
|
+
readonly providerExecuted: boolean;
|
|
233
|
+
readonly operationKey?: string | undefined;
|
|
234
|
+
readonly operationName?: string | undefined;
|
|
235
|
+
readonly operationIcon?: string | undefined;
|
|
236
|
+
} | {
|
|
237
|
+
readonly _tag: "toolResult";
|
|
238
|
+
readonly pending?: boolean | undefined;
|
|
239
|
+
readonly toolCallId: string;
|
|
240
|
+
readonly name: string;
|
|
241
|
+
readonly result?: string | {
|
|
242
|
+
readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
|
|
243
|
+
readonly content: readonly ({
|
|
244
|
+
readonly _tag: "text";
|
|
245
|
+
readonly pending?: boolean | undefined;
|
|
246
|
+
readonly mimeType?: string | undefined;
|
|
247
|
+
readonly text: string;
|
|
248
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
249
|
+
} | {
|
|
250
|
+
readonly _tag: "image";
|
|
251
|
+
readonly pending?: boolean | undefined;
|
|
252
|
+
readonly id?: string | undefined;
|
|
253
|
+
readonly source?: {
|
|
254
|
+
readonly type: "base64";
|
|
255
|
+
readonly mediaType: string;
|
|
256
|
+
readonly data: string;
|
|
257
|
+
} | {
|
|
258
|
+
readonly type: "http";
|
|
259
|
+
readonly url: string;
|
|
260
|
+
} | undefined;
|
|
261
|
+
} | {
|
|
262
|
+
readonly _tag: "file";
|
|
263
|
+
readonly pending?: boolean | undefined;
|
|
264
|
+
readonly url: string;
|
|
265
|
+
readonly name?: string | undefined;
|
|
266
|
+
readonly mediaType?: string | undefined;
|
|
267
|
+
})[];
|
|
268
|
+
} | undefined;
|
|
269
|
+
readonly error?: string | undefined;
|
|
270
|
+
readonly providerExecuted: boolean;
|
|
271
|
+
} | {
|
|
272
|
+
readonly _tag: "toolkit";
|
|
273
|
+
readonly pending?: boolean | undefined;
|
|
274
|
+
} | {
|
|
275
|
+
readonly _tag: "transcript";
|
|
276
|
+
readonly pending?: boolean | undefined;
|
|
277
|
+
readonly started: string;
|
|
278
|
+
readonly text: string;
|
|
279
|
+
};
|
|
280
|
+
}>;
|
|
281
|
+
export declare const AgentRequestBegin: Trace.EventType<{}>;
|
|
282
|
+
export declare const AgentRequestEnd: Trace.EventType<{
|
|
283
|
+
readonly status: "error" | "interrupted" | "success";
|
|
284
|
+
readonly error?: string | undefined;
|
|
285
|
+
}>;
|
|
286
|
+
/**
|
|
287
|
+
* Emitted when an MCP server connection fails for a request turn.
|
|
288
|
+
* Ephemeral so that misconfigured/unreachable servers don't pollute the durable feed,
|
|
289
|
+
* but can still be surfaced to the user via the live ephemeral event stream.
|
|
290
|
+
*/
|
|
291
|
+
export declare const McpServerError: Trace.EventType<{
|
|
292
|
+
readonly url: string;
|
|
293
|
+
readonly protocol: "http" | "sse";
|
|
294
|
+
readonly message: string;
|
|
295
|
+
}>;
|
|
296
|
+
//# sourceMappingURL=tracing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../../../src/util/tracing.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAGjC;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOvB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOxB,CAAC;AAEH,eAAO,MAAM,iBAAiB,qBAG5B,CAAC;AAEH,eAAO,MAAM,eAAe;;;EAM1B,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;;EAOzB,CAAC"}
|