@artinet/sdk 0.5.6 → 0.5.7
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 +23 -1
- package/README.md +73 -0
- package/dist/services/a2a/factory/builder.js +1 -1
- package/dist/services/a2a/factory/event.js +1 -1
- package/dist/services/a2a/service.js +2 -5
- package/dist/services/a2a/service.js.map +1 -1
- package/dist/services/index.js +1 -0
- package/dist/services/index.js.map +1 -1
- package/dist/services/mcp/index.js +2 -0
- package/dist/services/mcp/index.js.map +1 -0
- package/dist/services/mcp/service.js +123 -0
- package/dist/services/mcp/service.js.map +1 -0
- package/dist/transport/trpc/a2a/routes/tasks/route.js +1 -1
- package/dist/transport/trpc/a2a/routes/tasks/route.js.map +1 -1
- package/dist/types/interfaces/services/a2a/builder.js +4 -0
- package/dist/types/interfaces/services/a2a/builder.js.map +1 -1
- package/dist/types/interfaces/services/index.js +1 -0
- package/dist/types/interfaces/services/index.js.map +1 -1
- package/dist/types/interfaces/services/mcp/index.js +2 -0
- package/dist/types/interfaces/services/mcp/index.js.map +1 -0
- package/dist/types/interfaces/services/mcp/service.js +6 -0
- package/dist/types/interfaces/services/mcp/service.js.map +1 -0
- package/dist/types/schemas/a2a/agent.js +9 -3
- package/dist/types/schemas/a2a/agent.js.map +1 -1
- package/dist/types/schemas/a2a/auth.js +11 -1
- package/dist/types/schemas/a2a/auth.js.map +1 -1
- package/dist/types/schemas/a2a/error.js +1 -1
- package/dist/types/schemas/a2a/error.js.map +1 -1
- package/dist/types/schemas/a2a/kind.js +1 -1
- package/dist/types/schemas/a2a/kind.js.map +1 -1
- package/dist/types/schemas/a2a/message.js +1 -1
- package/dist/types/schemas/a2a/message.js.map +1 -1
- package/dist/types/schemas/a2a/notification.js +2 -1
- package/dist/types/schemas/a2a/notification.js.map +1 -1
- package/dist/types/schemas/a2a/parameters.js +1 -1
- package/dist/types/schemas/a2a/parameters.js.map +1 -1
- package/dist/types/schemas/a2a/protocol.js +1 -1
- package/dist/types/schemas/a2a/protocol.js.map +1 -1
- package/dist/types/schemas/a2a/rpc.js +1 -1
- package/dist/types/schemas/a2a/rpc.js.map +1 -1
- package/dist/types/schemas/a2a/task.js +1 -1
- package/dist/types/schemas/a2a/task.js.map +1 -1
- package/dist/types/schemas/a2a/transport.js +2 -1
- package/dist/types/schemas/a2a/transport.js.map +1 -1
- package/dist/types/schemas/deployment/request.js +2 -2
- package/dist/types/schemas/deployment/request.js.map +1 -1
- package/dist/types/server/express/server.d.ts +7 -7
- package/dist/types/services/a2a/factory/builder.d.ts +8 -8
- package/dist/types/services/a2a/factory/context.d.ts +1 -1
- package/dist/types/services/a2a/factory/event.d.ts +1 -1
- package/dist/types/services/a2a/methods/get-task.d.ts +17 -17
- package/dist/types/services/a2a/service.d.ts +57 -58
- package/dist/types/services/a2a/service.d.ts.map +1 -1
- package/dist/types/services/index.d.ts +1 -0
- package/dist/types/services/index.d.ts.map +1 -1
- package/dist/types/services/mcp/index.d.ts +2 -0
- package/dist/types/services/mcp/index.d.ts.map +1 -0
- package/dist/types/services/mcp/service.d.ts +31 -0
- package/dist/types/services/mcp/service.d.ts.map +1 -0
- package/dist/types/transport/trpc/a2a/factory/router.d.ts +370 -370
- package/dist/types/transport/trpc/a2a/routes/info.d.ts +15 -15
- package/dist/types/transport/trpc/a2a/routes/message/route.d.ts +79 -79
- package/dist/types/transport/trpc/a2a/routes/tasks/route.d.ts +84 -84
- package/dist/types/transport/trpc/a2a/trpc.d.ts +35 -35
- package/dist/types/types/interfaces/services/a2a/builder.d.ts +4 -0
- package/dist/types/types/interfaces/services/a2a/builder.d.ts.map +1 -1
- package/dist/types/types/interfaces/services/a2a/context.d.ts +1 -1
- package/dist/types/types/interfaces/services/a2a/service.d.ts +1 -1
- package/dist/types/types/interfaces/services/core/context/context.d.ts +1 -1
- package/dist/types/types/interfaces/services/core/context/types.d.ts.map +1 -1
- package/dist/types/types/interfaces/services/core/execution/engine.d.ts +1 -1
- package/dist/types/types/interfaces/services/core/managers/event.d.ts +1 -1
- package/dist/types/types/interfaces/services/core/managers/stream.d.ts +1 -1
- package/dist/types/types/interfaces/services/core/service.d.ts +1 -1
- package/dist/types/types/interfaces/services/index.d.ts +1 -0
- package/dist/types/types/interfaces/services/index.d.ts.map +1 -1
- package/dist/types/types/interfaces/services/mcp/index.d.ts +2 -0
- package/dist/types/types/interfaces/services/mcp/index.d.ts.map +1 -0
- package/dist/types/types/interfaces/services/mcp/service.d.ts +50 -0
- package/dist/types/types/interfaces/services/mcp/service.d.ts.map +1 -0
- package/dist/types/types/schemas/a2a/agent.d.ts +2371 -296
- package/dist/types/types/schemas/a2a/agent.d.ts.map +1 -1
- package/dist/types/types/schemas/a2a/auth.d.ts +795 -171
- package/dist/types/types/schemas/a2a/auth.d.ts.map +1 -1
- package/dist/types/types/schemas/a2a/error.d.ts +243 -27
- package/dist/types/types/schemas/a2a/error.d.ts.map +1 -1
- package/dist/types/types/schemas/a2a/kind.d.ts +3 -19
- package/dist/types/types/schemas/a2a/kind.d.ts.map +1 -1
- package/dist/types/types/schemas/a2a/message.d.ts +9580 -1806
- package/dist/types/types/schemas/a2a/message.d.ts.map +1 -1
- package/dist/types/types/schemas/a2a/notification.d.ts +1283 -103
- package/dist/types/types/schemas/a2a/notification.d.ts.map +1 -1
- package/dist/types/types/schemas/a2a/parameters.d.ts +814 -165
- package/dist/types/types/schemas/a2a/parameters.d.ts.map +1 -1
- package/dist/types/types/schemas/a2a/protocol.d.ts +13378 -2221
- package/dist/types/types/schemas/a2a/protocol.d.ts.map +1 -1
- package/dist/types/types/schemas/a2a/rpc.d.ts +137 -11
- package/dist/types/types/schemas/a2a/rpc.d.ts.map +1 -1
- package/dist/types/types/schemas/a2a/task.d.ts +5409 -1020
- package/dist/types/types/schemas/a2a/task.d.ts.map +1 -1
- package/dist/types/types/schemas/a2a/transport.d.ts +17 -13
- package/dist/types/types/schemas/a2a/transport.d.ts.map +1 -1
- package/dist/types/types/schemas/deployment/request.d.ts +2639 -299
- package/dist/types/types/schemas/deployment/request.d.ts.map +1 -1
- package/dist/types/utils/common/zAsyncIterable-v3.d.ts +25 -0
- package/dist/types/utils/common/zAsyncIterable-v3.d.ts.map +1 -0
- package/dist/types/utils/common/zAsyncIterable.d.ts.map +1 -1
- package/dist/types/utils/deployment/full-deployment.d.ts +2 -2
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/utils/common/zAsyncIterable-v3.js +39 -0
- package/dist/utils/common/zAsyncIterable-v3.js.map +1 -0
- package/dist/utils/common/zAsyncIterable.js +1 -0
- package/dist/utils/common/zAsyncIterable.js.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -5,9 +5,8 @@
|
|
|
5
5
|
export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRouter<{
|
|
6
6
|
ctx: import("../trpc.js").A2AExecutionEnvironment<{
|
|
7
7
|
message: {
|
|
8
|
-
|
|
8
|
+
kind: "message";
|
|
9
9
|
parts: ({
|
|
10
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
11
10
|
file: {
|
|
12
11
|
bytes: string;
|
|
13
12
|
name?: string | undefined;
|
|
@@ -19,26 +18,27 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
19
18
|
mimeType?: string | undefined;
|
|
20
19
|
bytes?: undefined;
|
|
21
20
|
};
|
|
21
|
+
kind: "file";
|
|
22
22
|
metadata?: Record<string, unknown> | undefined;
|
|
23
23
|
} | {
|
|
24
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
25
24
|
text: string;
|
|
25
|
+
kind: "text";
|
|
26
26
|
metadata?: Record<string, unknown> | undefined;
|
|
27
27
|
} | {
|
|
28
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
29
28
|
data: Record<string, unknown>;
|
|
29
|
+
kind: "data";
|
|
30
30
|
metadata?: Record<string, unknown> | undefined;
|
|
31
31
|
})[];
|
|
32
|
+
role: "user" | "agent";
|
|
32
33
|
messageId: string;
|
|
33
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
34
34
|
metadata?: Record<string, unknown> | undefined;
|
|
35
35
|
extensions?: string[] | undefined;
|
|
36
36
|
referenceTaskIds?: string[] | undefined;
|
|
37
37
|
taskId?: string | undefined;
|
|
38
38
|
contextId?: string | undefined;
|
|
39
39
|
};
|
|
40
|
+
metadata?: Record<string, unknown> | undefined;
|
|
40
41
|
configuration?: {
|
|
41
|
-
acceptedOutputModes?: string[] | undefined;
|
|
42
42
|
historyLength?: number | undefined;
|
|
43
43
|
pushNotificationConfig?: {
|
|
44
44
|
url: string;
|
|
@@ -49,9 +49,9 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
49
49
|
credentials?: string | undefined;
|
|
50
50
|
} | undefined;
|
|
51
51
|
} | undefined;
|
|
52
|
+
acceptedOutputModes?: string[] | undefined;
|
|
52
53
|
blocking?: boolean | undefined;
|
|
53
54
|
} | undefined;
|
|
54
|
-
metadata?: Record<string, unknown> | undefined;
|
|
55
55
|
}, import("../../../../index.js").TaskAndHistory, import("../../../../index.js").UpdateEvent>;
|
|
56
56
|
meta: object;
|
|
57
57
|
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
@@ -60,34 +60,35 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
60
60
|
agentCard: import("@trpc/server").TRPCQueryProcedure<{
|
|
61
61
|
input: void;
|
|
62
62
|
output: {
|
|
63
|
-
protocolVersion: string;
|
|
64
|
-
name: string;
|
|
65
63
|
description: string;
|
|
64
|
+
name: string;
|
|
66
65
|
url: string;
|
|
66
|
+
protocolVersion: string;
|
|
67
67
|
version: string;
|
|
68
68
|
capabilities: {
|
|
69
|
-
streaming?: boolean | undefined;
|
|
70
|
-
pushNotifications?: boolean | undefined;
|
|
71
|
-
stateTransitionHistory?: boolean | undefined;
|
|
72
69
|
extensions?: {
|
|
73
70
|
uri: string;
|
|
71
|
+
params?: Record<string, unknown> | undefined;
|
|
74
72
|
description?: string | undefined;
|
|
75
73
|
required?: boolean | undefined;
|
|
76
|
-
params?: Record<string, unknown> | undefined;
|
|
77
74
|
}[] | undefined;
|
|
75
|
+
streaming?: boolean | undefined;
|
|
76
|
+
pushNotifications?: boolean | undefined;
|
|
77
|
+
stateTransitionHistory?: boolean | undefined;
|
|
78
78
|
};
|
|
79
79
|
defaultInputModes: string[];
|
|
80
80
|
defaultOutputModes: string[];
|
|
81
81
|
skills: {
|
|
82
|
-
id: string;
|
|
83
|
-
name: string;
|
|
84
82
|
description: string;
|
|
83
|
+
name: string;
|
|
84
|
+
id: string;
|
|
85
85
|
tags?: string[] | undefined;
|
|
86
86
|
examples?: string[] | undefined;
|
|
87
87
|
inputModes?: string[] | undefined;
|
|
88
88
|
outputModes?: string[] | undefined;
|
|
89
89
|
security?: Record<string, string[]>[] | undefined;
|
|
90
90
|
}[];
|
|
91
|
+
security?: Record<string, string[]>[] | undefined;
|
|
91
92
|
preferredTransport?: string | undefined;
|
|
92
93
|
additionalInterfaces?: {
|
|
93
94
|
url: string;
|
|
@@ -95,22 +96,22 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
95
96
|
}[] | undefined;
|
|
96
97
|
iconUrl?: string | undefined;
|
|
97
98
|
provider?: {
|
|
98
|
-
organization: string;
|
|
99
99
|
url: string;
|
|
100
|
+
organization: string;
|
|
100
101
|
} | undefined;
|
|
101
102
|
documentationUrl?: string | undefined;
|
|
102
103
|
securitySchemes?: Record<string, {
|
|
103
|
-
type: "apiKey"
|
|
104
|
+
type: "apiKey";
|
|
104
105
|
in: "query" | "header" | "cookie";
|
|
105
106
|
name: string;
|
|
106
107
|
description?: string | undefined;
|
|
107
108
|
} | {
|
|
108
|
-
type: "
|
|
109
|
+
type: "http";
|
|
109
110
|
scheme: string;
|
|
110
111
|
description?: string | undefined;
|
|
111
112
|
bearerFormat?: string | undefined;
|
|
112
113
|
} | {
|
|
113
|
-
type: "
|
|
114
|
+
type: "oauth2";
|
|
114
115
|
flows: {
|
|
115
116
|
authorizationCode?: {
|
|
116
117
|
authorizationUrl: string;
|
|
@@ -137,14 +138,13 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
137
138
|
description?: string | undefined;
|
|
138
139
|
oauth2MetadataUrl?: string | undefined;
|
|
139
140
|
} | {
|
|
140
|
-
type: "
|
|
141
|
+
type: "openIdConnect";
|
|
141
142
|
openIdConnectUrl: string;
|
|
142
143
|
description?: string | undefined;
|
|
143
144
|
} | {
|
|
144
|
-
type: "
|
|
145
|
+
type: "mutualTLS";
|
|
145
146
|
description?: string | undefined;
|
|
146
147
|
}> | undefined;
|
|
147
|
-
security?: Record<string, string[]>[] | undefined;
|
|
148
148
|
supportsAuthenticatedExtendedCard?: boolean | undefined;
|
|
149
149
|
signatures?: {
|
|
150
150
|
protected: string;
|
|
@@ -157,9 +157,8 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
157
157
|
message: import("@trpc/server").TRPCBuiltRouter<{
|
|
158
158
|
ctx: import("../trpc.js").A2AExecutionEnvironment<{
|
|
159
159
|
message: {
|
|
160
|
-
|
|
160
|
+
kind: "message";
|
|
161
161
|
parts: ({
|
|
162
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
163
162
|
file: {
|
|
164
163
|
bytes: string;
|
|
165
164
|
name?: string | undefined;
|
|
@@ -171,26 +170,27 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
171
170
|
mimeType?: string | undefined;
|
|
172
171
|
bytes?: undefined;
|
|
173
172
|
};
|
|
173
|
+
kind: "file";
|
|
174
174
|
metadata?: Record<string, unknown> | undefined;
|
|
175
175
|
} | {
|
|
176
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
177
176
|
text: string;
|
|
177
|
+
kind: "text";
|
|
178
178
|
metadata?: Record<string, unknown> | undefined;
|
|
179
179
|
} | {
|
|
180
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
181
180
|
data: Record<string, unknown>;
|
|
181
|
+
kind: "data";
|
|
182
182
|
metadata?: Record<string, unknown> | undefined;
|
|
183
183
|
})[];
|
|
184
|
+
role: "user" | "agent";
|
|
184
185
|
messageId: string;
|
|
185
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
186
186
|
metadata?: Record<string, unknown> | undefined;
|
|
187
187
|
extensions?: string[] | undefined;
|
|
188
188
|
referenceTaskIds?: string[] | undefined;
|
|
189
189
|
taskId?: string | undefined;
|
|
190
190
|
contextId?: string | undefined;
|
|
191
191
|
};
|
|
192
|
+
metadata?: Record<string, unknown> | undefined;
|
|
192
193
|
configuration?: {
|
|
193
|
-
acceptedOutputModes?: string[] | undefined;
|
|
194
194
|
historyLength?: number | undefined;
|
|
195
195
|
pushNotificationConfig?: {
|
|
196
196
|
url: string;
|
|
@@ -201,9 +201,9 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
201
201
|
credentials?: string | undefined;
|
|
202
202
|
} | undefined;
|
|
203
203
|
} | undefined;
|
|
204
|
+
acceptedOutputModes?: string[] | undefined;
|
|
204
205
|
blocking?: boolean | undefined;
|
|
205
206
|
} | undefined;
|
|
206
|
-
metadata?: Record<string, unknown> | undefined;
|
|
207
207
|
}, import("../../../../index.js").TaskAndHistory, import("../../../../index.js").UpdateEvent>;
|
|
208
208
|
meta: object;
|
|
209
209
|
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
@@ -212,9 +212,8 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
212
212
|
send: import("@trpc/server").TRPCMutationProcedure<{
|
|
213
213
|
input: {
|
|
214
214
|
message: {
|
|
215
|
-
|
|
215
|
+
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
216
216
|
parts: ({
|
|
217
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
218
217
|
file: {
|
|
219
218
|
bytes: string;
|
|
220
219
|
name?: string | undefined;
|
|
@@ -226,26 +225,27 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
226
225
|
mimeType?: string | undefined;
|
|
227
226
|
bytes?: undefined;
|
|
228
227
|
};
|
|
228
|
+
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
229
229
|
metadata?: Record<string, unknown> | undefined;
|
|
230
230
|
} | {
|
|
231
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
232
231
|
text: string;
|
|
232
|
+
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
233
233
|
metadata?: Record<string, unknown> | undefined;
|
|
234
234
|
} | {
|
|
235
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
236
235
|
data: Record<string, unknown>;
|
|
236
|
+
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
237
237
|
metadata?: Record<string, unknown> | undefined;
|
|
238
238
|
})[];
|
|
239
|
+
role: "user" | "agent";
|
|
239
240
|
messageId: string;
|
|
240
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
241
241
|
metadata?: Record<string, unknown> | undefined;
|
|
242
242
|
extensions?: string[] | undefined;
|
|
243
243
|
referenceTaskIds?: string[] | undefined;
|
|
244
244
|
taskId?: string | undefined;
|
|
245
245
|
contextId?: string | undefined;
|
|
246
246
|
};
|
|
247
|
+
metadata?: Record<string, unknown> | undefined;
|
|
247
248
|
configuration?: {
|
|
248
|
-
acceptedOutputModes?: string[] | undefined;
|
|
249
249
|
historyLength?: number | undefined;
|
|
250
250
|
pushNotificationConfig?: {
|
|
251
251
|
url: string;
|
|
@@ -256,14 +256,13 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
256
256
|
credentials?: string | undefined;
|
|
257
257
|
} | undefined;
|
|
258
258
|
} | undefined;
|
|
259
|
+
acceptedOutputModes?: string[] | undefined;
|
|
259
260
|
blocking?: boolean | undefined;
|
|
260
261
|
} | undefined;
|
|
261
|
-
metadata?: Record<string, unknown> | undefined;
|
|
262
262
|
};
|
|
263
263
|
output: {
|
|
264
|
-
|
|
264
|
+
kind: "message";
|
|
265
265
|
parts: ({
|
|
266
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
267
266
|
file: {
|
|
268
267
|
bytes: string;
|
|
269
268
|
name?: string | undefined;
|
|
@@ -275,31 +274,30 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
275
274
|
mimeType?: string | undefined;
|
|
276
275
|
bytes?: undefined;
|
|
277
276
|
};
|
|
277
|
+
kind: "file";
|
|
278
278
|
metadata?: Record<string, unknown> | undefined;
|
|
279
279
|
} | {
|
|
280
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
281
280
|
text: string;
|
|
281
|
+
kind: "text";
|
|
282
282
|
metadata?: Record<string, unknown> | undefined;
|
|
283
283
|
} | {
|
|
284
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
285
284
|
data: Record<string, unknown>;
|
|
285
|
+
kind: "data";
|
|
286
286
|
metadata?: Record<string, unknown> | undefined;
|
|
287
287
|
})[];
|
|
288
|
+
role: "user" | "agent";
|
|
288
289
|
messageId: string;
|
|
289
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
290
290
|
metadata?: Record<string, unknown> | undefined;
|
|
291
291
|
extensions?: string[] | undefined;
|
|
292
292
|
referenceTaskIds?: string[] | undefined;
|
|
293
293
|
taskId?: string | undefined;
|
|
294
294
|
contextId?: string | undefined;
|
|
295
295
|
} | {
|
|
296
|
-
id: string;
|
|
297
296
|
status: {
|
|
298
297
|
state: "unknown" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required";
|
|
299
298
|
message?: {
|
|
300
|
-
|
|
299
|
+
kind: "message";
|
|
301
300
|
parts: ({
|
|
302
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
303
301
|
file: {
|
|
304
302
|
bytes: string;
|
|
305
303
|
name?: string | undefined;
|
|
@@ -311,18 +309,19 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
311
309
|
mimeType?: string | undefined;
|
|
312
310
|
bytes?: undefined;
|
|
313
311
|
};
|
|
312
|
+
kind: "file";
|
|
314
313
|
metadata?: Record<string, unknown> | undefined;
|
|
315
314
|
} | {
|
|
316
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
317
315
|
text: string;
|
|
316
|
+
kind: "text";
|
|
318
317
|
metadata?: Record<string, unknown> | undefined;
|
|
319
318
|
} | {
|
|
320
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
321
319
|
data: Record<string, unknown>;
|
|
320
|
+
kind: "data";
|
|
322
321
|
metadata?: Record<string, unknown> | undefined;
|
|
323
322
|
})[];
|
|
323
|
+
role: "user" | "agent";
|
|
324
324
|
messageId: string;
|
|
325
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
326
325
|
metadata?: Record<string, unknown> | undefined;
|
|
327
326
|
extensions?: string[] | undefined;
|
|
328
327
|
referenceTaskIds?: string[] | undefined;
|
|
@@ -331,12 +330,13 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
331
330
|
} | undefined;
|
|
332
331
|
timestamp?: string | undefined;
|
|
333
332
|
};
|
|
334
|
-
|
|
333
|
+
id: string;
|
|
334
|
+
kind: "task";
|
|
335
|
+
metadata?: Record<string, unknown> | undefined;
|
|
335
336
|
contextId?: string | undefined;
|
|
336
337
|
history?: {
|
|
337
|
-
|
|
338
|
+
kind: "message";
|
|
338
339
|
parts: ({
|
|
339
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
340
340
|
file: {
|
|
341
341
|
bytes: string;
|
|
342
342
|
name?: string | undefined;
|
|
@@ -348,18 +348,19 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
348
348
|
mimeType?: string | undefined;
|
|
349
349
|
bytes?: undefined;
|
|
350
350
|
};
|
|
351
|
+
kind: "file";
|
|
351
352
|
metadata?: Record<string, unknown> | undefined;
|
|
352
353
|
} | {
|
|
353
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
354
354
|
text: string;
|
|
355
|
+
kind: "text";
|
|
355
356
|
metadata?: Record<string, unknown> | undefined;
|
|
356
357
|
} | {
|
|
357
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
358
358
|
data: Record<string, unknown>;
|
|
359
|
+
kind: "data";
|
|
359
360
|
metadata?: Record<string, unknown> | undefined;
|
|
360
361
|
})[];
|
|
362
|
+
role: "user" | "agent";
|
|
361
363
|
messageId: string;
|
|
362
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
363
364
|
metadata?: Record<string, unknown> | undefined;
|
|
364
365
|
extensions?: string[] | undefined;
|
|
365
366
|
referenceTaskIds?: string[] | undefined;
|
|
@@ -369,7 +370,6 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
369
370
|
artifacts?: {
|
|
370
371
|
artifactId: string;
|
|
371
372
|
parts: ({
|
|
372
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
373
373
|
file: {
|
|
374
374
|
bytes: string;
|
|
375
375
|
name?: string | undefined;
|
|
@@ -381,31 +381,30 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
381
381
|
mimeType?: string | undefined;
|
|
382
382
|
bytes?: undefined;
|
|
383
383
|
};
|
|
384
|
+
kind: "file";
|
|
384
385
|
metadata?: Record<string, unknown> | undefined;
|
|
385
386
|
} | {
|
|
386
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
387
387
|
text: string;
|
|
388
|
+
kind: "text";
|
|
388
389
|
metadata?: Record<string, unknown> | undefined;
|
|
389
390
|
} | {
|
|
390
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
391
391
|
data: Record<string, unknown>;
|
|
392
|
+
kind: "data";
|
|
392
393
|
metadata?: Record<string, unknown> | undefined;
|
|
393
394
|
})[];
|
|
394
|
-
name?: string | undefined;
|
|
395
395
|
description?: string | undefined;
|
|
396
|
+
name?: string | undefined;
|
|
396
397
|
metadata?: Record<string, unknown> | undefined;
|
|
397
398
|
extension?: string[] | undefined;
|
|
398
399
|
}[] | undefined;
|
|
399
|
-
metadata?: Record<string, unknown> | undefined;
|
|
400
400
|
};
|
|
401
401
|
meta: object;
|
|
402
402
|
}>;
|
|
403
403
|
stream: import("@trpc/server").TRPCSubscriptionProcedure<{
|
|
404
404
|
input: {
|
|
405
405
|
message: {
|
|
406
|
-
|
|
406
|
+
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
407
407
|
parts: ({
|
|
408
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
409
408
|
file: {
|
|
410
409
|
bytes: string;
|
|
411
410
|
name?: string | undefined;
|
|
@@ -417,26 +416,27 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
417
416
|
mimeType?: string | undefined;
|
|
418
417
|
bytes?: undefined;
|
|
419
418
|
};
|
|
419
|
+
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
420
420
|
metadata?: Record<string, unknown> | undefined;
|
|
421
421
|
} | {
|
|
422
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
423
422
|
text: string;
|
|
423
|
+
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
424
424
|
metadata?: Record<string, unknown> | undefined;
|
|
425
425
|
} | {
|
|
426
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
427
426
|
data: Record<string, unknown>;
|
|
427
|
+
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
428
428
|
metadata?: Record<string, unknown> | undefined;
|
|
429
429
|
})[];
|
|
430
|
+
role: "user" | "agent";
|
|
430
431
|
messageId: string;
|
|
431
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
432
432
|
metadata?: Record<string, unknown> | undefined;
|
|
433
433
|
extensions?: string[] | undefined;
|
|
434
434
|
referenceTaskIds?: string[] | undefined;
|
|
435
435
|
taskId?: string | undefined;
|
|
436
436
|
contextId?: string | undefined;
|
|
437
437
|
};
|
|
438
|
+
metadata?: Record<string, unknown> | undefined;
|
|
438
439
|
configuration?: {
|
|
439
|
-
acceptedOutputModes?: string[] | undefined;
|
|
440
440
|
historyLength?: number | undefined;
|
|
441
441
|
pushNotificationConfig?: {
|
|
442
442
|
url: string;
|
|
@@ -447,14 +447,13 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
447
447
|
credentials?: string | undefined;
|
|
448
448
|
} | undefined;
|
|
449
449
|
} | undefined;
|
|
450
|
+
acceptedOutputModes?: string[] | undefined;
|
|
450
451
|
blocking?: boolean | undefined;
|
|
451
452
|
} | undefined;
|
|
452
|
-
metadata?: Record<string, unknown> | undefined;
|
|
453
453
|
};
|
|
454
454
|
output: AsyncIterable<{
|
|
455
|
-
|
|
455
|
+
kind: "message";
|
|
456
456
|
parts: ({
|
|
457
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
458
457
|
file: {
|
|
459
458
|
bytes: string;
|
|
460
459
|
name?: string | undefined;
|
|
@@ -466,31 +465,30 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
466
465
|
mimeType?: string | undefined;
|
|
467
466
|
bytes?: undefined;
|
|
468
467
|
};
|
|
468
|
+
kind: "file";
|
|
469
469
|
metadata?: Record<string, unknown> | undefined;
|
|
470
470
|
} | {
|
|
471
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
472
471
|
text: string;
|
|
472
|
+
kind: "text";
|
|
473
473
|
metadata?: Record<string, unknown> | undefined;
|
|
474
474
|
} | {
|
|
475
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
476
475
|
data: Record<string, unknown>;
|
|
476
|
+
kind: "data";
|
|
477
477
|
metadata?: Record<string, unknown> | undefined;
|
|
478
478
|
})[];
|
|
479
|
+
role: "user" | "agent";
|
|
479
480
|
messageId: string;
|
|
480
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
481
481
|
metadata?: Record<string, unknown> | undefined;
|
|
482
482
|
extensions?: string[] | undefined;
|
|
483
483
|
referenceTaskIds?: string[] | undefined;
|
|
484
484
|
taskId?: string | undefined;
|
|
485
485
|
contextId?: string | undefined;
|
|
486
486
|
} | {
|
|
487
|
-
id: string;
|
|
488
487
|
status: {
|
|
489
488
|
state: "unknown" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required";
|
|
490
489
|
message?: {
|
|
491
|
-
|
|
490
|
+
kind: "message";
|
|
492
491
|
parts: ({
|
|
493
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
494
492
|
file: {
|
|
495
493
|
bytes: string;
|
|
496
494
|
name?: string | undefined;
|
|
@@ -502,18 +500,19 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
502
500
|
mimeType?: string | undefined;
|
|
503
501
|
bytes?: undefined;
|
|
504
502
|
};
|
|
503
|
+
kind: "file";
|
|
505
504
|
metadata?: Record<string, unknown> | undefined;
|
|
506
505
|
} | {
|
|
507
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
508
506
|
text: string;
|
|
507
|
+
kind: "text";
|
|
509
508
|
metadata?: Record<string, unknown> | undefined;
|
|
510
509
|
} | {
|
|
511
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
512
510
|
data: Record<string, unknown>;
|
|
511
|
+
kind: "data";
|
|
513
512
|
metadata?: Record<string, unknown> | undefined;
|
|
514
513
|
})[];
|
|
514
|
+
role: "user" | "agent";
|
|
515
515
|
messageId: string;
|
|
516
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
517
516
|
metadata?: Record<string, unknown> | undefined;
|
|
518
517
|
extensions?: string[] | undefined;
|
|
519
518
|
referenceTaskIds?: string[] | undefined;
|
|
@@ -522,12 +521,13 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
522
521
|
} | undefined;
|
|
523
522
|
timestamp?: string | undefined;
|
|
524
523
|
};
|
|
525
|
-
|
|
524
|
+
id: string;
|
|
525
|
+
kind: "task";
|
|
526
|
+
metadata?: Record<string, unknown> | undefined;
|
|
526
527
|
contextId?: string | undefined;
|
|
527
528
|
history?: {
|
|
528
|
-
|
|
529
|
+
kind: "message";
|
|
529
530
|
parts: ({
|
|
530
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
531
531
|
file: {
|
|
532
532
|
bytes: string;
|
|
533
533
|
name?: string | undefined;
|
|
@@ -539,18 +539,19 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
539
539
|
mimeType?: string | undefined;
|
|
540
540
|
bytes?: undefined;
|
|
541
541
|
};
|
|
542
|
+
kind: "file";
|
|
542
543
|
metadata?: Record<string, unknown> | undefined;
|
|
543
544
|
} | {
|
|
544
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
545
545
|
text: string;
|
|
546
|
+
kind: "text";
|
|
546
547
|
metadata?: Record<string, unknown> | undefined;
|
|
547
548
|
} | {
|
|
548
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
549
549
|
data: Record<string, unknown>;
|
|
550
|
+
kind: "data";
|
|
550
551
|
metadata?: Record<string, unknown> | undefined;
|
|
551
552
|
})[];
|
|
553
|
+
role: "user" | "agent";
|
|
552
554
|
messageId: string;
|
|
553
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
554
555
|
metadata?: Record<string, unknown> | undefined;
|
|
555
556
|
extensions?: string[] | undefined;
|
|
556
557
|
referenceTaskIds?: string[] | undefined;
|
|
@@ -560,7 +561,6 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
560
561
|
artifacts?: {
|
|
561
562
|
artifactId: string;
|
|
562
563
|
parts: ({
|
|
563
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
564
564
|
file: {
|
|
565
565
|
bytes: string;
|
|
566
566
|
name?: string | undefined;
|
|
@@ -572,32 +572,28 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
572
572
|
mimeType?: string | undefined;
|
|
573
573
|
bytes?: undefined;
|
|
574
574
|
};
|
|
575
|
+
kind: "file";
|
|
575
576
|
metadata?: Record<string, unknown> | undefined;
|
|
576
577
|
} | {
|
|
577
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
578
578
|
text: string;
|
|
579
|
+
kind: "text";
|
|
579
580
|
metadata?: Record<string, unknown> | undefined;
|
|
580
581
|
} | {
|
|
581
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
582
582
|
data: Record<string, unknown>;
|
|
583
|
+
kind: "data";
|
|
583
584
|
metadata?: Record<string, unknown> | undefined;
|
|
584
585
|
})[];
|
|
585
|
-
name?: string | undefined;
|
|
586
586
|
description?: string | undefined;
|
|
587
|
+
name?: string | undefined;
|
|
587
588
|
metadata?: Record<string, unknown> | undefined;
|
|
588
589
|
extension?: string[] | undefined;
|
|
589
590
|
}[] | undefined;
|
|
590
|
-
metadata?: Record<string, unknown> | undefined;
|
|
591
591
|
} | {
|
|
592
|
-
taskId: string;
|
|
593
|
-
contextId: string;
|
|
594
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
595
592
|
status: {
|
|
596
593
|
state: "unknown" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required";
|
|
597
594
|
message?: {
|
|
598
|
-
|
|
595
|
+
kind: "message";
|
|
599
596
|
parts: ({
|
|
600
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
601
597
|
file: {
|
|
602
598
|
bytes: string;
|
|
603
599
|
name?: string | undefined;
|
|
@@ -609,18 +605,19 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
609
605
|
mimeType?: string | undefined;
|
|
610
606
|
bytes?: undefined;
|
|
611
607
|
};
|
|
608
|
+
kind: "file";
|
|
612
609
|
metadata?: Record<string, unknown> | undefined;
|
|
613
610
|
} | {
|
|
614
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
615
611
|
text: string;
|
|
612
|
+
kind: "text";
|
|
616
613
|
metadata?: Record<string, unknown> | undefined;
|
|
617
614
|
} | {
|
|
618
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
619
615
|
data: Record<string, unknown>;
|
|
616
|
+
kind: "data";
|
|
620
617
|
metadata?: Record<string, unknown> | undefined;
|
|
621
618
|
})[];
|
|
619
|
+
role: "user" | "agent";
|
|
622
620
|
messageId: string;
|
|
623
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
624
621
|
metadata?: Record<string, unknown> | undefined;
|
|
625
622
|
extensions?: string[] | undefined;
|
|
626
623
|
referenceTaskIds?: string[] | undefined;
|
|
@@ -629,16 +626,18 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
629
626
|
} | undefined;
|
|
630
627
|
timestamp?: string | undefined;
|
|
631
628
|
};
|
|
629
|
+
kind: "status-update";
|
|
630
|
+
taskId: string;
|
|
631
|
+
contextId: string;
|
|
632
632
|
final: boolean;
|
|
633
633
|
metadata?: Record<string, unknown> | undefined;
|
|
634
634
|
} | {
|
|
635
|
+
kind: "artifact-update";
|
|
635
636
|
taskId: string;
|
|
636
637
|
contextId: string;
|
|
637
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
638
638
|
artifact: {
|
|
639
639
|
artifactId: string;
|
|
640
640
|
parts: ({
|
|
641
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
642
641
|
file: {
|
|
643
642
|
bytes: string;
|
|
644
643
|
name?: string | undefined;
|
|
@@ -650,24 +649,25 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
650
649
|
mimeType?: string | undefined;
|
|
651
650
|
bytes?: undefined;
|
|
652
651
|
};
|
|
652
|
+
kind: "file";
|
|
653
653
|
metadata?: Record<string, unknown> | undefined;
|
|
654
654
|
} | {
|
|
655
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
656
655
|
text: string;
|
|
656
|
+
kind: "text";
|
|
657
657
|
metadata?: Record<string, unknown> | undefined;
|
|
658
658
|
} | {
|
|
659
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
660
659
|
data: Record<string, unknown>;
|
|
660
|
+
kind: "data";
|
|
661
661
|
metadata?: Record<string, unknown> | undefined;
|
|
662
662
|
})[];
|
|
663
|
-
name?: string | undefined;
|
|
664
663
|
description?: string | undefined;
|
|
664
|
+
name?: string | undefined;
|
|
665
665
|
metadata?: Record<string, unknown> | undefined;
|
|
666
666
|
extension?: string[] | undefined;
|
|
667
667
|
};
|
|
668
|
+
metadata?: Record<string, unknown> | undefined;
|
|
668
669
|
append?: boolean | undefined;
|
|
669
670
|
lastChunk?: boolean | undefined;
|
|
670
|
-
metadata?: Record<string, unknown> | undefined;
|
|
671
671
|
}, void, unknown>;
|
|
672
672
|
meta: object;
|
|
673
673
|
}>;
|
|
@@ -675,9 +675,8 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
675
675
|
tasks: import("@trpc/server").TRPCBuiltRouter<{
|
|
676
676
|
ctx: import("../trpc.js").A2AExecutionEnvironment<{
|
|
677
677
|
message: {
|
|
678
|
-
|
|
678
|
+
kind: "message";
|
|
679
679
|
parts: ({
|
|
680
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
681
680
|
file: {
|
|
682
681
|
bytes: string;
|
|
683
682
|
name?: string | undefined;
|
|
@@ -689,26 +688,27 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
689
688
|
mimeType?: string | undefined;
|
|
690
689
|
bytes?: undefined;
|
|
691
690
|
};
|
|
691
|
+
kind: "file";
|
|
692
692
|
metadata?: Record<string, unknown> | undefined;
|
|
693
693
|
} | {
|
|
694
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
695
694
|
text: string;
|
|
695
|
+
kind: "text";
|
|
696
696
|
metadata?: Record<string, unknown> | undefined;
|
|
697
697
|
} | {
|
|
698
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
699
698
|
data: Record<string, unknown>;
|
|
699
|
+
kind: "data";
|
|
700
700
|
metadata?: Record<string, unknown> | undefined;
|
|
701
701
|
})[];
|
|
702
|
+
role: "user" | "agent";
|
|
702
703
|
messageId: string;
|
|
703
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
704
704
|
metadata?: Record<string, unknown> | undefined;
|
|
705
705
|
extensions?: string[] | undefined;
|
|
706
706
|
referenceTaskIds?: string[] | undefined;
|
|
707
707
|
taskId?: string | undefined;
|
|
708
708
|
contextId?: string | undefined;
|
|
709
709
|
};
|
|
710
|
+
metadata?: Record<string, unknown> | undefined;
|
|
710
711
|
configuration?: {
|
|
711
|
-
acceptedOutputModes?: string[] | undefined;
|
|
712
712
|
historyLength?: number | undefined;
|
|
713
713
|
pushNotificationConfig?: {
|
|
714
714
|
url: string;
|
|
@@ -719,9 +719,9 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
719
719
|
credentials?: string | undefined;
|
|
720
720
|
} | undefined;
|
|
721
721
|
} | undefined;
|
|
722
|
+
acceptedOutputModes?: string[] | undefined;
|
|
722
723
|
blocking?: boolean | undefined;
|
|
723
724
|
} | undefined;
|
|
724
|
-
metadata?: Record<string, unknown> | undefined;
|
|
725
725
|
}, import("../../../../index.js").TaskAndHistory, import("../../../../index.js").UpdateEvent>;
|
|
726
726
|
meta: object;
|
|
727
727
|
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
@@ -733,9 +733,8 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
733
733
|
metadata?: Record<string, unknown> | undefined;
|
|
734
734
|
};
|
|
735
735
|
output: AsyncIterable<{
|
|
736
|
-
|
|
736
|
+
kind: "message";
|
|
737
737
|
parts: ({
|
|
738
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
739
738
|
file: {
|
|
740
739
|
bytes: string;
|
|
741
740
|
name?: string | undefined;
|
|
@@ -747,31 +746,30 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
747
746
|
mimeType?: string | undefined;
|
|
748
747
|
bytes?: undefined;
|
|
749
748
|
};
|
|
749
|
+
kind: "file";
|
|
750
750
|
metadata?: Record<string, unknown> | undefined;
|
|
751
751
|
} | {
|
|
752
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
753
752
|
text: string;
|
|
753
|
+
kind: "text";
|
|
754
754
|
metadata?: Record<string, unknown> | undefined;
|
|
755
755
|
} | {
|
|
756
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
757
756
|
data: Record<string, unknown>;
|
|
757
|
+
kind: "data";
|
|
758
758
|
metadata?: Record<string, unknown> | undefined;
|
|
759
759
|
})[];
|
|
760
|
+
role: "user" | "agent";
|
|
760
761
|
messageId: string;
|
|
761
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
762
762
|
metadata?: Record<string, unknown> | undefined;
|
|
763
763
|
extensions?: string[] | undefined;
|
|
764
764
|
referenceTaskIds?: string[] | undefined;
|
|
765
765
|
taskId?: string | undefined;
|
|
766
766
|
contextId?: string | undefined;
|
|
767
767
|
} | {
|
|
768
|
-
id: string;
|
|
769
768
|
status: {
|
|
770
769
|
state: "unknown" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required";
|
|
771
770
|
message?: {
|
|
772
|
-
|
|
771
|
+
kind: "message";
|
|
773
772
|
parts: ({
|
|
774
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
775
773
|
file: {
|
|
776
774
|
bytes: string;
|
|
777
775
|
name?: string | undefined;
|
|
@@ -783,18 +781,19 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
783
781
|
mimeType?: string | undefined;
|
|
784
782
|
bytes?: undefined;
|
|
785
783
|
};
|
|
784
|
+
kind: "file";
|
|
786
785
|
metadata?: Record<string, unknown> | undefined;
|
|
787
786
|
} | {
|
|
788
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
789
787
|
text: string;
|
|
788
|
+
kind: "text";
|
|
790
789
|
metadata?: Record<string, unknown> | undefined;
|
|
791
790
|
} | {
|
|
792
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
793
791
|
data: Record<string, unknown>;
|
|
792
|
+
kind: "data";
|
|
794
793
|
metadata?: Record<string, unknown> | undefined;
|
|
795
794
|
})[];
|
|
795
|
+
role: "user" | "agent";
|
|
796
796
|
messageId: string;
|
|
797
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
798
797
|
metadata?: Record<string, unknown> | undefined;
|
|
799
798
|
extensions?: string[] | undefined;
|
|
800
799
|
referenceTaskIds?: string[] | undefined;
|
|
@@ -803,12 +802,13 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
803
802
|
} | undefined;
|
|
804
803
|
timestamp?: string | undefined;
|
|
805
804
|
};
|
|
806
|
-
|
|
805
|
+
id: string;
|
|
806
|
+
kind: "task";
|
|
807
|
+
metadata?: Record<string, unknown> | undefined;
|
|
807
808
|
contextId?: string | undefined;
|
|
808
809
|
history?: {
|
|
809
|
-
|
|
810
|
+
kind: "message";
|
|
810
811
|
parts: ({
|
|
811
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
812
812
|
file: {
|
|
813
813
|
bytes: string;
|
|
814
814
|
name?: string | undefined;
|
|
@@ -820,18 +820,19 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
820
820
|
mimeType?: string | undefined;
|
|
821
821
|
bytes?: undefined;
|
|
822
822
|
};
|
|
823
|
+
kind: "file";
|
|
823
824
|
metadata?: Record<string, unknown> | undefined;
|
|
824
825
|
} | {
|
|
825
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
826
826
|
text: string;
|
|
827
|
+
kind: "text";
|
|
827
828
|
metadata?: Record<string, unknown> | undefined;
|
|
828
829
|
} | {
|
|
829
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
830
830
|
data: Record<string, unknown>;
|
|
831
|
+
kind: "data";
|
|
831
832
|
metadata?: Record<string, unknown> | undefined;
|
|
832
833
|
})[];
|
|
834
|
+
role: "user" | "agent";
|
|
833
835
|
messageId: string;
|
|
834
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
835
836
|
metadata?: Record<string, unknown> | undefined;
|
|
836
837
|
extensions?: string[] | undefined;
|
|
837
838
|
referenceTaskIds?: string[] | undefined;
|
|
@@ -841,7 +842,6 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
841
842
|
artifacts?: {
|
|
842
843
|
artifactId: string;
|
|
843
844
|
parts: ({
|
|
844
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
845
845
|
file: {
|
|
846
846
|
bytes: string;
|
|
847
847
|
name?: string | undefined;
|
|
@@ -853,32 +853,28 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
853
853
|
mimeType?: string | undefined;
|
|
854
854
|
bytes?: undefined;
|
|
855
855
|
};
|
|
856
|
+
kind: "file";
|
|
856
857
|
metadata?: Record<string, unknown> | undefined;
|
|
857
858
|
} | {
|
|
858
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
859
859
|
text: string;
|
|
860
|
+
kind: "text";
|
|
860
861
|
metadata?: Record<string, unknown> | undefined;
|
|
861
862
|
} | {
|
|
862
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
863
863
|
data: Record<string, unknown>;
|
|
864
|
+
kind: "data";
|
|
864
865
|
metadata?: Record<string, unknown> | undefined;
|
|
865
866
|
})[];
|
|
866
|
-
name?: string | undefined;
|
|
867
867
|
description?: string | undefined;
|
|
868
|
+
name?: string | undefined;
|
|
868
869
|
metadata?: Record<string, unknown> | undefined;
|
|
869
870
|
extension?: string[] | undefined;
|
|
870
871
|
}[] | undefined;
|
|
871
|
-
metadata?: Record<string, unknown> | undefined;
|
|
872
872
|
} | {
|
|
873
|
-
taskId: string;
|
|
874
|
-
contextId: string;
|
|
875
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
876
873
|
status: {
|
|
877
874
|
state: "unknown" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required";
|
|
878
875
|
message?: {
|
|
879
|
-
|
|
876
|
+
kind: "message";
|
|
880
877
|
parts: ({
|
|
881
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
882
878
|
file: {
|
|
883
879
|
bytes: string;
|
|
884
880
|
name?: string | undefined;
|
|
@@ -890,18 +886,19 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
890
886
|
mimeType?: string | undefined;
|
|
891
887
|
bytes?: undefined;
|
|
892
888
|
};
|
|
889
|
+
kind: "file";
|
|
893
890
|
metadata?: Record<string, unknown> | undefined;
|
|
894
891
|
} | {
|
|
895
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
896
892
|
text: string;
|
|
893
|
+
kind: "text";
|
|
897
894
|
metadata?: Record<string, unknown> | undefined;
|
|
898
895
|
} | {
|
|
899
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
900
896
|
data: Record<string, unknown>;
|
|
897
|
+
kind: "data";
|
|
901
898
|
metadata?: Record<string, unknown> | undefined;
|
|
902
899
|
})[];
|
|
900
|
+
role: "user" | "agent";
|
|
903
901
|
messageId: string;
|
|
904
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
905
902
|
metadata?: Record<string, unknown> | undefined;
|
|
906
903
|
extensions?: string[] | undefined;
|
|
907
904
|
referenceTaskIds?: string[] | undefined;
|
|
@@ -910,16 +907,18 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
910
907
|
} | undefined;
|
|
911
908
|
timestamp?: string | undefined;
|
|
912
909
|
};
|
|
910
|
+
kind: "status-update";
|
|
911
|
+
taskId: string;
|
|
912
|
+
contextId: string;
|
|
913
913
|
final: boolean;
|
|
914
914
|
metadata?: Record<string, unknown> | undefined;
|
|
915
915
|
} | {
|
|
916
|
+
kind: "artifact-update";
|
|
916
917
|
taskId: string;
|
|
917
918
|
contextId: string;
|
|
918
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
919
919
|
artifact: {
|
|
920
920
|
artifactId: string;
|
|
921
921
|
parts: ({
|
|
922
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
923
922
|
file: {
|
|
924
923
|
bytes: string;
|
|
925
924
|
name?: string | undefined;
|
|
@@ -931,24 +930,25 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
931
930
|
mimeType?: string | undefined;
|
|
932
931
|
bytes?: undefined;
|
|
933
932
|
};
|
|
933
|
+
kind: "file";
|
|
934
934
|
metadata?: Record<string, unknown> | undefined;
|
|
935
935
|
} | {
|
|
936
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
937
936
|
text: string;
|
|
937
|
+
kind: "text";
|
|
938
938
|
metadata?: Record<string, unknown> | undefined;
|
|
939
939
|
} | {
|
|
940
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
941
940
|
data: Record<string, unknown>;
|
|
941
|
+
kind: "data";
|
|
942
942
|
metadata?: Record<string, unknown> | undefined;
|
|
943
943
|
})[];
|
|
944
|
-
name?: string | undefined;
|
|
945
944
|
description?: string | undefined;
|
|
945
|
+
name?: string | undefined;
|
|
946
946
|
metadata?: Record<string, unknown> | undefined;
|
|
947
947
|
extension?: string[] | undefined;
|
|
948
948
|
};
|
|
949
|
+
metadata?: Record<string, unknown> | undefined;
|
|
949
950
|
append?: boolean | undefined;
|
|
950
951
|
lastChunk?: boolean | undefined;
|
|
951
|
-
metadata?: Record<string, unknown> | undefined;
|
|
952
952
|
}, void, unknown>;
|
|
953
953
|
meta: object;
|
|
954
954
|
}>;
|
|
@@ -958,13 +958,11 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
958
958
|
metadata?: Record<string, unknown> | undefined;
|
|
959
959
|
};
|
|
960
960
|
output: {
|
|
961
|
-
id: string;
|
|
962
961
|
status: {
|
|
963
962
|
state: "unknown" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required";
|
|
964
963
|
message?: {
|
|
965
|
-
|
|
964
|
+
kind: "message";
|
|
966
965
|
parts: ({
|
|
967
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
968
966
|
file: {
|
|
969
967
|
bytes: string;
|
|
970
968
|
name?: string | undefined;
|
|
@@ -976,18 +974,19 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
976
974
|
mimeType?: string | undefined;
|
|
977
975
|
bytes?: undefined;
|
|
978
976
|
};
|
|
977
|
+
kind: "file";
|
|
979
978
|
metadata?: Record<string, unknown> | undefined;
|
|
980
979
|
} | {
|
|
981
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
982
980
|
text: string;
|
|
981
|
+
kind: "text";
|
|
983
982
|
metadata?: Record<string, unknown> | undefined;
|
|
984
983
|
} | {
|
|
985
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
986
984
|
data: Record<string, unknown>;
|
|
985
|
+
kind: "data";
|
|
987
986
|
metadata?: Record<string, unknown> | undefined;
|
|
988
987
|
})[];
|
|
988
|
+
role: "user" | "agent";
|
|
989
989
|
messageId: string;
|
|
990
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
991
990
|
metadata?: Record<string, unknown> | undefined;
|
|
992
991
|
extensions?: string[] | undefined;
|
|
993
992
|
referenceTaskIds?: string[] | undefined;
|
|
@@ -996,12 +995,13 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
996
995
|
} | undefined;
|
|
997
996
|
timestamp?: string | undefined;
|
|
998
997
|
};
|
|
999
|
-
|
|
998
|
+
id: string;
|
|
999
|
+
kind: "task";
|
|
1000
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1000
1001
|
contextId?: string | undefined;
|
|
1001
1002
|
history?: {
|
|
1002
|
-
|
|
1003
|
+
kind: "message";
|
|
1003
1004
|
parts: ({
|
|
1004
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1005
1005
|
file: {
|
|
1006
1006
|
bytes: string;
|
|
1007
1007
|
name?: string | undefined;
|
|
@@ -1013,18 +1013,19 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
1013
1013
|
mimeType?: string | undefined;
|
|
1014
1014
|
bytes?: undefined;
|
|
1015
1015
|
};
|
|
1016
|
+
kind: "file";
|
|
1016
1017
|
metadata?: Record<string, unknown> | undefined;
|
|
1017
1018
|
} | {
|
|
1018
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1019
1019
|
text: string;
|
|
1020
|
+
kind: "text";
|
|
1020
1021
|
metadata?: Record<string, unknown> | undefined;
|
|
1021
1022
|
} | {
|
|
1022
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1023
1023
|
data: Record<string, unknown>;
|
|
1024
|
+
kind: "data";
|
|
1024
1025
|
metadata?: Record<string, unknown> | undefined;
|
|
1025
1026
|
})[];
|
|
1027
|
+
role: "user" | "agent";
|
|
1026
1028
|
messageId: string;
|
|
1027
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1028
1029
|
metadata?: Record<string, unknown> | undefined;
|
|
1029
1030
|
extensions?: string[] | undefined;
|
|
1030
1031
|
referenceTaskIds?: string[] | undefined;
|
|
@@ -1034,7 +1035,6 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
1034
1035
|
artifacts?: {
|
|
1035
1036
|
artifactId: string;
|
|
1036
1037
|
parts: ({
|
|
1037
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1038
1038
|
file: {
|
|
1039
1039
|
bytes: string;
|
|
1040
1040
|
name?: string | undefined;
|
|
@@ -1046,22 +1046,22 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
1046
1046
|
mimeType?: string | undefined;
|
|
1047
1047
|
bytes?: undefined;
|
|
1048
1048
|
};
|
|
1049
|
+
kind: "file";
|
|
1049
1050
|
metadata?: Record<string, unknown> | undefined;
|
|
1050
1051
|
} | {
|
|
1051
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1052
1052
|
text: string;
|
|
1053
|
+
kind: "text";
|
|
1053
1054
|
metadata?: Record<string, unknown> | undefined;
|
|
1054
1055
|
} | {
|
|
1055
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1056
1056
|
data: Record<string, unknown>;
|
|
1057
|
+
kind: "data";
|
|
1057
1058
|
metadata?: Record<string, unknown> | undefined;
|
|
1058
1059
|
})[];
|
|
1059
|
-
name?: string | undefined;
|
|
1060
1060
|
description?: string | undefined;
|
|
1061
|
+
name?: string | undefined;
|
|
1061
1062
|
metadata?: Record<string, unknown> | undefined;
|
|
1062
1063
|
extension?: string[] | undefined;
|
|
1063
1064
|
}[] | undefined;
|
|
1064
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1065
1065
|
};
|
|
1066
1066
|
meta: object;
|
|
1067
1067
|
}>;
|
|
@@ -1071,13 +1071,11 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
1071
1071
|
metadata?: Record<string, unknown> | undefined;
|
|
1072
1072
|
};
|
|
1073
1073
|
output: {
|
|
1074
|
-
id: string;
|
|
1075
1074
|
status: {
|
|
1076
1075
|
state: "unknown" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required";
|
|
1077
1076
|
message?: {
|
|
1078
|
-
|
|
1077
|
+
kind: "message";
|
|
1079
1078
|
parts: ({
|
|
1080
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1081
1079
|
file: {
|
|
1082
1080
|
bytes: string;
|
|
1083
1081
|
name?: string | undefined;
|
|
@@ -1089,18 +1087,19 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
1089
1087
|
mimeType?: string | undefined;
|
|
1090
1088
|
bytes?: undefined;
|
|
1091
1089
|
};
|
|
1090
|
+
kind: "file";
|
|
1092
1091
|
metadata?: Record<string, unknown> | undefined;
|
|
1093
1092
|
} | {
|
|
1094
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1095
1093
|
text: string;
|
|
1094
|
+
kind: "text";
|
|
1096
1095
|
metadata?: Record<string, unknown> | undefined;
|
|
1097
1096
|
} | {
|
|
1098
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1099
1097
|
data: Record<string, unknown>;
|
|
1098
|
+
kind: "data";
|
|
1100
1099
|
metadata?: Record<string, unknown> | undefined;
|
|
1101
1100
|
})[];
|
|
1101
|
+
role: "user" | "agent";
|
|
1102
1102
|
messageId: string;
|
|
1103
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1104
1103
|
metadata?: Record<string, unknown> | undefined;
|
|
1105
1104
|
extensions?: string[] | undefined;
|
|
1106
1105
|
referenceTaskIds?: string[] | undefined;
|
|
@@ -1109,12 +1108,13 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
1109
1108
|
} | undefined;
|
|
1110
1109
|
timestamp?: string | undefined;
|
|
1111
1110
|
};
|
|
1112
|
-
|
|
1111
|
+
id: string;
|
|
1112
|
+
kind: "task";
|
|
1113
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1113
1114
|
contextId?: string | undefined;
|
|
1114
1115
|
history?: {
|
|
1115
|
-
|
|
1116
|
+
kind: "message";
|
|
1116
1117
|
parts: ({
|
|
1117
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1118
1118
|
file: {
|
|
1119
1119
|
bytes: string;
|
|
1120
1120
|
name?: string | undefined;
|
|
@@ -1126,18 +1126,19 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
1126
1126
|
mimeType?: string | undefined;
|
|
1127
1127
|
bytes?: undefined;
|
|
1128
1128
|
};
|
|
1129
|
+
kind: "file";
|
|
1129
1130
|
metadata?: Record<string, unknown> | undefined;
|
|
1130
1131
|
} | {
|
|
1131
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1132
1132
|
text: string;
|
|
1133
|
+
kind: "text";
|
|
1133
1134
|
metadata?: Record<string, unknown> | undefined;
|
|
1134
1135
|
} | {
|
|
1135
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1136
1136
|
data: Record<string, unknown>;
|
|
1137
|
+
kind: "data";
|
|
1137
1138
|
metadata?: Record<string, unknown> | undefined;
|
|
1138
1139
|
})[];
|
|
1140
|
+
role: "user" | "agent";
|
|
1139
1141
|
messageId: string;
|
|
1140
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1141
1142
|
metadata?: Record<string, unknown> | undefined;
|
|
1142
1143
|
extensions?: string[] | undefined;
|
|
1143
1144
|
referenceTaskIds?: string[] | undefined;
|
|
@@ -1147,7 +1148,6 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
1147
1148
|
artifacts?: {
|
|
1148
1149
|
artifactId: string;
|
|
1149
1150
|
parts: ({
|
|
1150
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1151
1151
|
file: {
|
|
1152
1152
|
bytes: string;
|
|
1153
1153
|
name?: string | undefined;
|
|
@@ -1159,31 +1159,30 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
1159
1159
|
mimeType?: string | undefined;
|
|
1160
1160
|
bytes?: undefined;
|
|
1161
1161
|
};
|
|
1162
|
+
kind: "file";
|
|
1162
1163
|
metadata?: Record<string, unknown> | undefined;
|
|
1163
1164
|
} | {
|
|
1164
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1165
1165
|
text: string;
|
|
1166
|
+
kind: "text";
|
|
1166
1167
|
metadata?: Record<string, unknown> | undefined;
|
|
1167
1168
|
} | {
|
|
1168
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1169
1169
|
data: Record<string, unknown>;
|
|
1170
|
+
kind: "data";
|
|
1170
1171
|
metadata?: Record<string, unknown> | undefined;
|
|
1171
1172
|
})[];
|
|
1172
|
-
name?: string | undefined;
|
|
1173
1173
|
description?: string | undefined;
|
|
1174
|
+
name?: string | undefined;
|
|
1174
1175
|
metadata?: Record<string, unknown> | undefined;
|
|
1175
1176
|
extension?: string[] | undefined;
|
|
1176
1177
|
}[] | undefined;
|
|
1177
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1178
1178
|
};
|
|
1179
1179
|
meta: object;
|
|
1180
1180
|
}>;
|
|
1181
1181
|
pushNotificationConfig: import("@trpc/server").TRPCBuiltRouter<{
|
|
1182
1182
|
ctx: import("../trpc.js").A2AExecutionEnvironment<{
|
|
1183
1183
|
message: {
|
|
1184
|
-
|
|
1184
|
+
kind: "message";
|
|
1185
1185
|
parts: ({
|
|
1186
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1187
1186
|
file: {
|
|
1188
1187
|
bytes: string;
|
|
1189
1188
|
name?: string | undefined;
|
|
@@ -1195,26 +1194,27 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
1195
1194
|
mimeType?: string | undefined;
|
|
1196
1195
|
bytes?: undefined;
|
|
1197
1196
|
};
|
|
1197
|
+
kind: "file";
|
|
1198
1198
|
metadata?: Record<string, unknown> | undefined;
|
|
1199
1199
|
} | {
|
|
1200
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1201
1200
|
text: string;
|
|
1201
|
+
kind: "text";
|
|
1202
1202
|
metadata?: Record<string, unknown> | undefined;
|
|
1203
1203
|
} | {
|
|
1204
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1205
1204
|
data: Record<string, unknown>;
|
|
1205
|
+
kind: "data";
|
|
1206
1206
|
metadata?: Record<string, unknown> | undefined;
|
|
1207
1207
|
})[];
|
|
1208
|
+
role: "user" | "agent";
|
|
1208
1209
|
messageId: string;
|
|
1209
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1210
1210
|
metadata?: Record<string, unknown> | undefined;
|
|
1211
1211
|
extensions?: string[] | undefined;
|
|
1212
1212
|
referenceTaskIds?: string[] | undefined;
|
|
1213
1213
|
taskId?: string | undefined;
|
|
1214
1214
|
contextId?: string | undefined;
|
|
1215
1215
|
};
|
|
1216
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1216
1217
|
configuration?: {
|
|
1217
|
-
acceptedOutputModes?: string[] | undefined;
|
|
1218
1218
|
historyLength?: number | undefined;
|
|
1219
1219
|
pushNotificationConfig?: {
|
|
1220
1220
|
url: string;
|
|
@@ -1225,9 +1225,9 @@ export declare const createA2ARouter: () => import("@trpc/server").TRPCBuiltRout
|
|
|
1225
1225
|
credentials?: string | undefined;
|
|
1226
1226
|
} | undefined;
|
|
1227
1227
|
} | undefined;
|
|
1228
|
+
acceptedOutputModes?: string[] | undefined;
|
|
1228
1229
|
blocking?: boolean | undefined;
|
|
1229
1230
|
} | undefined;
|
|
1230
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1231
1231
|
}, import("../../../../index.js").TaskAndHistory, import("../../../../index.js").UpdateEvent>;
|
|
1232
1232
|
meta: object;
|
|
1233
1233
|
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
@@ -1318,9 +1318,8 @@ export type A2ARouter = Awaited<ReturnType<typeof createA2ARouter>>;
|
|
|
1318
1318
|
export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRouter<{
|
|
1319
1319
|
ctx: import("../trpc.js").A2AExecutionEnvironment<{
|
|
1320
1320
|
message: {
|
|
1321
|
-
|
|
1321
|
+
kind: "message";
|
|
1322
1322
|
parts: ({
|
|
1323
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1324
1323
|
file: {
|
|
1325
1324
|
bytes: string;
|
|
1326
1325
|
name?: string | undefined;
|
|
@@ -1332,26 +1331,27 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1332
1331
|
mimeType?: string | undefined;
|
|
1333
1332
|
bytes?: undefined;
|
|
1334
1333
|
};
|
|
1334
|
+
kind: "file";
|
|
1335
1335
|
metadata?: Record<string, unknown> | undefined;
|
|
1336
1336
|
} | {
|
|
1337
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1338
1337
|
text: string;
|
|
1338
|
+
kind: "text";
|
|
1339
1339
|
metadata?: Record<string, unknown> | undefined;
|
|
1340
1340
|
} | {
|
|
1341
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1342
1341
|
data: Record<string, unknown>;
|
|
1342
|
+
kind: "data";
|
|
1343
1343
|
metadata?: Record<string, unknown> | undefined;
|
|
1344
1344
|
})[];
|
|
1345
|
+
role: "user" | "agent";
|
|
1345
1346
|
messageId: string;
|
|
1346
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1347
1347
|
metadata?: Record<string, unknown> | undefined;
|
|
1348
1348
|
extensions?: string[] | undefined;
|
|
1349
1349
|
referenceTaskIds?: string[] | undefined;
|
|
1350
1350
|
taskId?: string | undefined;
|
|
1351
1351
|
contextId?: string | undefined;
|
|
1352
1352
|
};
|
|
1353
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1353
1354
|
configuration?: {
|
|
1354
|
-
acceptedOutputModes?: string[] | undefined;
|
|
1355
1355
|
historyLength?: number | undefined;
|
|
1356
1356
|
pushNotificationConfig?: {
|
|
1357
1357
|
url: string;
|
|
@@ -1362,9 +1362,9 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1362
1362
|
credentials?: string | undefined;
|
|
1363
1363
|
} | undefined;
|
|
1364
1364
|
} | undefined;
|
|
1365
|
+
acceptedOutputModes?: string[] | undefined;
|
|
1365
1366
|
blocking?: boolean | undefined;
|
|
1366
1367
|
} | undefined;
|
|
1367
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1368
1368
|
}, import("../../../../index.js").TaskAndHistory, import("../../../../index.js").UpdateEvent>;
|
|
1369
1369
|
meta: object;
|
|
1370
1370
|
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
@@ -1373,34 +1373,35 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1373
1373
|
agentCard: import("@trpc/server").TRPCQueryProcedure<{
|
|
1374
1374
|
input: void;
|
|
1375
1375
|
output: {
|
|
1376
|
-
protocolVersion: string;
|
|
1377
|
-
name: string;
|
|
1378
1376
|
description: string;
|
|
1377
|
+
name: string;
|
|
1379
1378
|
url: string;
|
|
1379
|
+
protocolVersion: string;
|
|
1380
1380
|
version: string;
|
|
1381
1381
|
capabilities: {
|
|
1382
|
-
streaming?: boolean | undefined;
|
|
1383
|
-
pushNotifications?: boolean | undefined;
|
|
1384
|
-
stateTransitionHistory?: boolean | undefined;
|
|
1385
1382
|
extensions?: {
|
|
1386
1383
|
uri: string;
|
|
1384
|
+
params?: Record<string, unknown> | undefined;
|
|
1387
1385
|
description?: string | undefined;
|
|
1388
1386
|
required?: boolean | undefined;
|
|
1389
|
-
params?: Record<string, unknown> | undefined;
|
|
1390
1387
|
}[] | undefined;
|
|
1388
|
+
streaming?: boolean | undefined;
|
|
1389
|
+
pushNotifications?: boolean | undefined;
|
|
1390
|
+
stateTransitionHistory?: boolean | undefined;
|
|
1391
1391
|
};
|
|
1392
1392
|
defaultInputModes: string[];
|
|
1393
1393
|
defaultOutputModes: string[];
|
|
1394
1394
|
skills: {
|
|
1395
|
-
id: string;
|
|
1396
|
-
name: string;
|
|
1397
1395
|
description: string;
|
|
1396
|
+
name: string;
|
|
1397
|
+
id: string;
|
|
1398
1398
|
tags?: string[] | undefined;
|
|
1399
1399
|
examples?: string[] | undefined;
|
|
1400
1400
|
inputModes?: string[] | undefined;
|
|
1401
1401
|
outputModes?: string[] | undefined;
|
|
1402
1402
|
security?: Record<string, string[]>[] | undefined;
|
|
1403
1403
|
}[];
|
|
1404
|
+
security?: Record<string, string[]>[] | undefined;
|
|
1404
1405
|
preferredTransport?: string | undefined;
|
|
1405
1406
|
additionalInterfaces?: {
|
|
1406
1407
|
url: string;
|
|
@@ -1408,22 +1409,22 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1408
1409
|
}[] | undefined;
|
|
1409
1410
|
iconUrl?: string | undefined;
|
|
1410
1411
|
provider?: {
|
|
1411
|
-
organization: string;
|
|
1412
1412
|
url: string;
|
|
1413
|
+
organization: string;
|
|
1413
1414
|
} | undefined;
|
|
1414
1415
|
documentationUrl?: string | undefined;
|
|
1415
1416
|
securitySchemes?: Record<string, {
|
|
1416
|
-
type: "apiKey"
|
|
1417
|
+
type: "apiKey";
|
|
1417
1418
|
in: "query" | "header" | "cookie";
|
|
1418
1419
|
name: string;
|
|
1419
1420
|
description?: string | undefined;
|
|
1420
1421
|
} | {
|
|
1421
|
-
type: "
|
|
1422
|
+
type: "http";
|
|
1422
1423
|
scheme: string;
|
|
1423
1424
|
description?: string | undefined;
|
|
1424
1425
|
bearerFormat?: string | undefined;
|
|
1425
1426
|
} | {
|
|
1426
|
-
type: "
|
|
1427
|
+
type: "oauth2";
|
|
1427
1428
|
flows: {
|
|
1428
1429
|
authorizationCode?: {
|
|
1429
1430
|
authorizationUrl: string;
|
|
@@ -1450,14 +1451,13 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1450
1451
|
description?: string | undefined;
|
|
1451
1452
|
oauth2MetadataUrl?: string | undefined;
|
|
1452
1453
|
} | {
|
|
1453
|
-
type: "
|
|
1454
|
+
type: "openIdConnect";
|
|
1454
1455
|
openIdConnectUrl: string;
|
|
1455
1456
|
description?: string | undefined;
|
|
1456
1457
|
} | {
|
|
1457
|
-
type: "
|
|
1458
|
+
type: "mutualTLS";
|
|
1458
1459
|
description?: string | undefined;
|
|
1459
1460
|
}> | undefined;
|
|
1460
|
-
security?: Record<string, string[]>[] | undefined;
|
|
1461
1461
|
supportsAuthenticatedExtendedCard?: boolean | undefined;
|
|
1462
1462
|
signatures?: {
|
|
1463
1463
|
protected: string;
|
|
@@ -1470,9 +1470,8 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1470
1470
|
message: import("@trpc/server").TRPCBuiltRouter<{
|
|
1471
1471
|
ctx: import("../trpc.js").A2AExecutionEnvironment<{
|
|
1472
1472
|
message: {
|
|
1473
|
-
|
|
1473
|
+
kind: "message";
|
|
1474
1474
|
parts: ({
|
|
1475
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1476
1475
|
file: {
|
|
1477
1476
|
bytes: string;
|
|
1478
1477
|
name?: string | undefined;
|
|
@@ -1484,26 +1483,27 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1484
1483
|
mimeType?: string | undefined;
|
|
1485
1484
|
bytes?: undefined;
|
|
1486
1485
|
};
|
|
1486
|
+
kind: "file";
|
|
1487
1487
|
metadata?: Record<string, unknown> | undefined;
|
|
1488
1488
|
} | {
|
|
1489
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1490
1489
|
text: string;
|
|
1490
|
+
kind: "text";
|
|
1491
1491
|
metadata?: Record<string, unknown> | undefined;
|
|
1492
1492
|
} | {
|
|
1493
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1494
1493
|
data: Record<string, unknown>;
|
|
1494
|
+
kind: "data";
|
|
1495
1495
|
metadata?: Record<string, unknown> | undefined;
|
|
1496
1496
|
})[];
|
|
1497
|
+
role: "user" | "agent";
|
|
1497
1498
|
messageId: string;
|
|
1498
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1499
1499
|
metadata?: Record<string, unknown> | undefined;
|
|
1500
1500
|
extensions?: string[] | undefined;
|
|
1501
1501
|
referenceTaskIds?: string[] | undefined;
|
|
1502
1502
|
taskId?: string | undefined;
|
|
1503
1503
|
contextId?: string | undefined;
|
|
1504
1504
|
};
|
|
1505
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1505
1506
|
configuration?: {
|
|
1506
|
-
acceptedOutputModes?: string[] | undefined;
|
|
1507
1507
|
historyLength?: number | undefined;
|
|
1508
1508
|
pushNotificationConfig?: {
|
|
1509
1509
|
url: string;
|
|
@@ -1514,9 +1514,9 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1514
1514
|
credentials?: string | undefined;
|
|
1515
1515
|
} | undefined;
|
|
1516
1516
|
} | undefined;
|
|
1517
|
+
acceptedOutputModes?: string[] | undefined;
|
|
1517
1518
|
blocking?: boolean | undefined;
|
|
1518
1519
|
} | undefined;
|
|
1519
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1520
1520
|
}, import("../../../../index.js").TaskAndHistory, import("../../../../index.js").UpdateEvent>;
|
|
1521
1521
|
meta: object;
|
|
1522
1522
|
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
@@ -1525,9 +1525,8 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1525
1525
|
send: import("@trpc/server").TRPCMutationProcedure<{
|
|
1526
1526
|
input: {
|
|
1527
1527
|
message: {
|
|
1528
|
-
|
|
1528
|
+
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1529
1529
|
parts: ({
|
|
1530
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1531
1530
|
file: {
|
|
1532
1531
|
bytes: string;
|
|
1533
1532
|
name?: string | undefined;
|
|
@@ -1539,26 +1538,27 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1539
1538
|
mimeType?: string | undefined;
|
|
1540
1539
|
bytes?: undefined;
|
|
1541
1540
|
};
|
|
1541
|
+
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1542
1542
|
metadata?: Record<string, unknown> | undefined;
|
|
1543
1543
|
} | {
|
|
1544
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1545
1544
|
text: string;
|
|
1545
|
+
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1546
1546
|
metadata?: Record<string, unknown> | undefined;
|
|
1547
1547
|
} | {
|
|
1548
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1549
1548
|
data: Record<string, unknown>;
|
|
1549
|
+
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1550
1550
|
metadata?: Record<string, unknown> | undefined;
|
|
1551
1551
|
})[];
|
|
1552
|
+
role: "user" | "agent";
|
|
1552
1553
|
messageId: string;
|
|
1553
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1554
1554
|
metadata?: Record<string, unknown> | undefined;
|
|
1555
1555
|
extensions?: string[] | undefined;
|
|
1556
1556
|
referenceTaskIds?: string[] | undefined;
|
|
1557
1557
|
taskId?: string | undefined;
|
|
1558
1558
|
contextId?: string | undefined;
|
|
1559
1559
|
};
|
|
1560
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1560
1561
|
configuration?: {
|
|
1561
|
-
acceptedOutputModes?: string[] | undefined;
|
|
1562
1562
|
historyLength?: number | undefined;
|
|
1563
1563
|
pushNotificationConfig?: {
|
|
1564
1564
|
url: string;
|
|
@@ -1569,14 +1569,13 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1569
1569
|
credentials?: string | undefined;
|
|
1570
1570
|
} | undefined;
|
|
1571
1571
|
} | undefined;
|
|
1572
|
+
acceptedOutputModes?: string[] | undefined;
|
|
1572
1573
|
blocking?: boolean | undefined;
|
|
1573
1574
|
} | undefined;
|
|
1574
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1575
1575
|
};
|
|
1576
1576
|
output: {
|
|
1577
|
-
|
|
1577
|
+
kind: "message";
|
|
1578
1578
|
parts: ({
|
|
1579
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1580
1579
|
file: {
|
|
1581
1580
|
bytes: string;
|
|
1582
1581
|
name?: string | undefined;
|
|
@@ -1588,31 +1587,30 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1588
1587
|
mimeType?: string | undefined;
|
|
1589
1588
|
bytes?: undefined;
|
|
1590
1589
|
};
|
|
1590
|
+
kind: "file";
|
|
1591
1591
|
metadata?: Record<string, unknown> | undefined;
|
|
1592
1592
|
} | {
|
|
1593
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1594
1593
|
text: string;
|
|
1594
|
+
kind: "text";
|
|
1595
1595
|
metadata?: Record<string, unknown> | undefined;
|
|
1596
1596
|
} | {
|
|
1597
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1598
1597
|
data: Record<string, unknown>;
|
|
1598
|
+
kind: "data";
|
|
1599
1599
|
metadata?: Record<string, unknown> | undefined;
|
|
1600
1600
|
})[];
|
|
1601
|
+
role: "user" | "agent";
|
|
1601
1602
|
messageId: string;
|
|
1602
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1603
1603
|
metadata?: Record<string, unknown> | undefined;
|
|
1604
1604
|
extensions?: string[] | undefined;
|
|
1605
1605
|
referenceTaskIds?: string[] | undefined;
|
|
1606
1606
|
taskId?: string | undefined;
|
|
1607
1607
|
contextId?: string | undefined;
|
|
1608
1608
|
} | {
|
|
1609
|
-
id: string;
|
|
1610
1609
|
status: {
|
|
1611
1610
|
state: "unknown" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required";
|
|
1612
1611
|
message?: {
|
|
1613
|
-
|
|
1612
|
+
kind: "message";
|
|
1614
1613
|
parts: ({
|
|
1615
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1616
1614
|
file: {
|
|
1617
1615
|
bytes: string;
|
|
1618
1616
|
name?: string | undefined;
|
|
@@ -1624,18 +1622,19 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1624
1622
|
mimeType?: string | undefined;
|
|
1625
1623
|
bytes?: undefined;
|
|
1626
1624
|
};
|
|
1625
|
+
kind: "file";
|
|
1627
1626
|
metadata?: Record<string, unknown> | undefined;
|
|
1628
1627
|
} | {
|
|
1629
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1630
1628
|
text: string;
|
|
1629
|
+
kind: "text";
|
|
1631
1630
|
metadata?: Record<string, unknown> | undefined;
|
|
1632
1631
|
} | {
|
|
1633
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1634
1632
|
data: Record<string, unknown>;
|
|
1633
|
+
kind: "data";
|
|
1635
1634
|
metadata?: Record<string, unknown> | undefined;
|
|
1636
1635
|
})[];
|
|
1636
|
+
role: "user" | "agent";
|
|
1637
1637
|
messageId: string;
|
|
1638
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1639
1638
|
metadata?: Record<string, unknown> | undefined;
|
|
1640
1639
|
extensions?: string[] | undefined;
|
|
1641
1640
|
referenceTaskIds?: string[] | undefined;
|
|
@@ -1644,12 +1643,13 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1644
1643
|
} | undefined;
|
|
1645
1644
|
timestamp?: string | undefined;
|
|
1646
1645
|
};
|
|
1647
|
-
|
|
1646
|
+
id: string;
|
|
1647
|
+
kind: "task";
|
|
1648
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1648
1649
|
contextId?: string | undefined;
|
|
1649
1650
|
history?: {
|
|
1650
|
-
|
|
1651
|
+
kind: "message";
|
|
1651
1652
|
parts: ({
|
|
1652
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1653
1653
|
file: {
|
|
1654
1654
|
bytes: string;
|
|
1655
1655
|
name?: string | undefined;
|
|
@@ -1661,18 +1661,19 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1661
1661
|
mimeType?: string | undefined;
|
|
1662
1662
|
bytes?: undefined;
|
|
1663
1663
|
};
|
|
1664
|
+
kind: "file";
|
|
1664
1665
|
metadata?: Record<string, unknown> | undefined;
|
|
1665
1666
|
} | {
|
|
1666
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1667
1667
|
text: string;
|
|
1668
|
+
kind: "text";
|
|
1668
1669
|
metadata?: Record<string, unknown> | undefined;
|
|
1669
1670
|
} | {
|
|
1670
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1671
1671
|
data: Record<string, unknown>;
|
|
1672
|
+
kind: "data";
|
|
1672
1673
|
metadata?: Record<string, unknown> | undefined;
|
|
1673
1674
|
})[];
|
|
1675
|
+
role: "user" | "agent";
|
|
1674
1676
|
messageId: string;
|
|
1675
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1676
1677
|
metadata?: Record<string, unknown> | undefined;
|
|
1677
1678
|
extensions?: string[] | undefined;
|
|
1678
1679
|
referenceTaskIds?: string[] | undefined;
|
|
@@ -1682,7 +1683,6 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1682
1683
|
artifacts?: {
|
|
1683
1684
|
artifactId: string;
|
|
1684
1685
|
parts: ({
|
|
1685
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1686
1686
|
file: {
|
|
1687
1687
|
bytes: string;
|
|
1688
1688
|
name?: string | undefined;
|
|
@@ -1694,31 +1694,30 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1694
1694
|
mimeType?: string | undefined;
|
|
1695
1695
|
bytes?: undefined;
|
|
1696
1696
|
};
|
|
1697
|
+
kind: "file";
|
|
1697
1698
|
metadata?: Record<string, unknown> | undefined;
|
|
1698
1699
|
} | {
|
|
1699
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1700
1700
|
text: string;
|
|
1701
|
+
kind: "text";
|
|
1701
1702
|
metadata?: Record<string, unknown> | undefined;
|
|
1702
1703
|
} | {
|
|
1703
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1704
1704
|
data: Record<string, unknown>;
|
|
1705
|
+
kind: "data";
|
|
1705
1706
|
metadata?: Record<string, unknown> | undefined;
|
|
1706
1707
|
})[];
|
|
1707
|
-
name?: string | undefined;
|
|
1708
1708
|
description?: string | undefined;
|
|
1709
|
+
name?: string | undefined;
|
|
1709
1710
|
metadata?: Record<string, unknown> | undefined;
|
|
1710
1711
|
extension?: string[] | undefined;
|
|
1711
1712
|
}[] | undefined;
|
|
1712
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1713
1713
|
};
|
|
1714
1714
|
meta: object;
|
|
1715
1715
|
}>;
|
|
1716
1716
|
stream: import("@trpc/server").TRPCSubscriptionProcedure<{
|
|
1717
1717
|
input: {
|
|
1718
1718
|
message: {
|
|
1719
|
-
|
|
1719
|
+
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1720
1720
|
parts: ({
|
|
1721
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1722
1721
|
file: {
|
|
1723
1722
|
bytes: string;
|
|
1724
1723
|
name?: string | undefined;
|
|
@@ -1730,26 +1729,27 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1730
1729
|
mimeType?: string | undefined;
|
|
1731
1730
|
bytes?: undefined;
|
|
1732
1731
|
};
|
|
1732
|
+
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1733
1733
|
metadata?: Record<string, unknown> | undefined;
|
|
1734
1734
|
} | {
|
|
1735
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1736
1735
|
text: string;
|
|
1736
|
+
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1737
1737
|
metadata?: Record<string, unknown> | undefined;
|
|
1738
1738
|
} | {
|
|
1739
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1740
1739
|
data: Record<string, unknown>;
|
|
1740
|
+
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1741
1741
|
metadata?: Record<string, unknown> | undefined;
|
|
1742
1742
|
})[];
|
|
1743
|
+
role: "user" | "agent";
|
|
1743
1744
|
messageId: string;
|
|
1744
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1745
1745
|
metadata?: Record<string, unknown> | undefined;
|
|
1746
1746
|
extensions?: string[] | undefined;
|
|
1747
1747
|
referenceTaskIds?: string[] | undefined;
|
|
1748
1748
|
taskId?: string | undefined;
|
|
1749
1749
|
contextId?: string | undefined;
|
|
1750
1750
|
};
|
|
1751
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1751
1752
|
configuration?: {
|
|
1752
|
-
acceptedOutputModes?: string[] | undefined;
|
|
1753
1753
|
historyLength?: number | undefined;
|
|
1754
1754
|
pushNotificationConfig?: {
|
|
1755
1755
|
url: string;
|
|
@@ -1760,14 +1760,13 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1760
1760
|
credentials?: string | undefined;
|
|
1761
1761
|
} | undefined;
|
|
1762
1762
|
} | undefined;
|
|
1763
|
+
acceptedOutputModes?: string[] | undefined;
|
|
1763
1764
|
blocking?: boolean | undefined;
|
|
1764
1765
|
} | undefined;
|
|
1765
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1766
1766
|
};
|
|
1767
1767
|
output: AsyncIterable<{
|
|
1768
|
-
|
|
1768
|
+
kind: "message";
|
|
1769
1769
|
parts: ({
|
|
1770
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1771
1770
|
file: {
|
|
1772
1771
|
bytes: string;
|
|
1773
1772
|
name?: string | undefined;
|
|
@@ -1779,31 +1778,30 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1779
1778
|
mimeType?: string | undefined;
|
|
1780
1779
|
bytes?: undefined;
|
|
1781
1780
|
};
|
|
1781
|
+
kind: "file";
|
|
1782
1782
|
metadata?: Record<string, unknown> | undefined;
|
|
1783
1783
|
} | {
|
|
1784
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1785
1784
|
text: string;
|
|
1785
|
+
kind: "text";
|
|
1786
1786
|
metadata?: Record<string, unknown> | undefined;
|
|
1787
1787
|
} | {
|
|
1788
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1789
1788
|
data: Record<string, unknown>;
|
|
1789
|
+
kind: "data";
|
|
1790
1790
|
metadata?: Record<string, unknown> | undefined;
|
|
1791
1791
|
})[];
|
|
1792
|
+
role: "user" | "agent";
|
|
1792
1793
|
messageId: string;
|
|
1793
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1794
1794
|
metadata?: Record<string, unknown> | undefined;
|
|
1795
1795
|
extensions?: string[] | undefined;
|
|
1796
1796
|
referenceTaskIds?: string[] | undefined;
|
|
1797
1797
|
taskId?: string | undefined;
|
|
1798
1798
|
contextId?: string | undefined;
|
|
1799
1799
|
} | {
|
|
1800
|
-
id: string;
|
|
1801
1800
|
status: {
|
|
1802
1801
|
state: "unknown" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required";
|
|
1803
1802
|
message?: {
|
|
1804
|
-
|
|
1803
|
+
kind: "message";
|
|
1805
1804
|
parts: ({
|
|
1806
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1807
1805
|
file: {
|
|
1808
1806
|
bytes: string;
|
|
1809
1807
|
name?: string | undefined;
|
|
@@ -1815,18 +1813,19 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1815
1813
|
mimeType?: string | undefined;
|
|
1816
1814
|
bytes?: undefined;
|
|
1817
1815
|
};
|
|
1816
|
+
kind: "file";
|
|
1818
1817
|
metadata?: Record<string, unknown> | undefined;
|
|
1819
1818
|
} | {
|
|
1820
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1821
1819
|
text: string;
|
|
1820
|
+
kind: "text";
|
|
1822
1821
|
metadata?: Record<string, unknown> | undefined;
|
|
1823
1822
|
} | {
|
|
1824
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1825
1823
|
data: Record<string, unknown>;
|
|
1824
|
+
kind: "data";
|
|
1826
1825
|
metadata?: Record<string, unknown> | undefined;
|
|
1827
1826
|
})[];
|
|
1827
|
+
role: "user" | "agent";
|
|
1828
1828
|
messageId: string;
|
|
1829
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1830
1829
|
metadata?: Record<string, unknown> | undefined;
|
|
1831
1830
|
extensions?: string[] | undefined;
|
|
1832
1831
|
referenceTaskIds?: string[] | undefined;
|
|
@@ -1835,12 +1834,13 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1835
1834
|
} | undefined;
|
|
1836
1835
|
timestamp?: string | undefined;
|
|
1837
1836
|
};
|
|
1838
|
-
|
|
1837
|
+
id: string;
|
|
1838
|
+
kind: "task";
|
|
1839
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1839
1840
|
contextId?: string | undefined;
|
|
1840
1841
|
history?: {
|
|
1841
|
-
|
|
1842
|
+
kind: "message";
|
|
1842
1843
|
parts: ({
|
|
1843
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1844
1844
|
file: {
|
|
1845
1845
|
bytes: string;
|
|
1846
1846
|
name?: string | undefined;
|
|
@@ -1852,18 +1852,19 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1852
1852
|
mimeType?: string | undefined;
|
|
1853
1853
|
bytes?: undefined;
|
|
1854
1854
|
};
|
|
1855
|
+
kind: "file";
|
|
1855
1856
|
metadata?: Record<string, unknown> | undefined;
|
|
1856
1857
|
} | {
|
|
1857
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1858
1858
|
text: string;
|
|
1859
|
+
kind: "text";
|
|
1859
1860
|
metadata?: Record<string, unknown> | undefined;
|
|
1860
1861
|
} | {
|
|
1861
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1862
1862
|
data: Record<string, unknown>;
|
|
1863
|
+
kind: "data";
|
|
1863
1864
|
metadata?: Record<string, unknown> | undefined;
|
|
1864
1865
|
})[];
|
|
1866
|
+
role: "user" | "agent";
|
|
1865
1867
|
messageId: string;
|
|
1866
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1867
1868
|
metadata?: Record<string, unknown> | undefined;
|
|
1868
1869
|
extensions?: string[] | undefined;
|
|
1869
1870
|
referenceTaskIds?: string[] | undefined;
|
|
@@ -1873,7 +1874,6 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1873
1874
|
artifacts?: {
|
|
1874
1875
|
artifactId: string;
|
|
1875
1876
|
parts: ({
|
|
1876
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1877
1877
|
file: {
|
|
1878
1878
|
bytes: string;
|
|
1879
1879
|
name?: string | undefined;
|
|
@@ -1885,32 +1885,28 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1885
1885
|
mimeType?: string | undefined;
|
|
1886
1886
|
bytes?: undefined;
|
|
1887
1887
|
};
|
|
1888
|
+
kind: "file";
|
|
1888
1889
|
metadata?: Record<string, unknown> | undefined;
|
|
1889
1890
|
} | {
|
|
1890
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1891
1891
|
text: string;
|
|
1892
|
+
kind: "text";
|
|
1892
1893
|
metadata?: Record<string, unknown> | undefined;
|
|
1893
1894
|
} | {
|
|
1894
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1895
1895
|
data: Record<string, unknown>;
|
|
1896
|
+
kind: "data";
|
|
1896
1897
|
metadata?: Record<string, unknown> | undefined;
|
|
1897
1898
|
})[];
|
|
1898
|
-
name?: string | undefined;
|
|
1899
1899
|
description?: string | undefined;
|
|
1900
|
+
name?: string | undefined;
|
|
1900
1901
|
metadata?: Record<string, unknown> | undefined;
|
|
1901
1902
|
extension?: string[] | undefined;
|
|
1902
1903
|
}[] | undefined;
|
|
1903
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1904
1904
|
} | {
|
|
1905
|
-
taskId: string;
|
|
1906
|
-
contextId: string;
|
|
1907
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1908
1905
|
status: {
|
|
1909
1906
|
state: "unknown" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required";
|
|
1910
1907
|
message?: {
|
|
1911
|
-
|
|
1908
|
+
kind: "message";
|
|
1912
1909
|
parts: ({
|
|
1913
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1914
1910
|
file: {
|
|
1915
1911
|
bytes: string;
|
|
1916
1912
|
name?: string | undefined;
|
|
@@ -1922,18 +1918,19 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1922
1918
|
mimeType?: string | undefined;
|
|
1923
1919
|
bytes?: undefined;
|
|
1924
1920
|
};
|
|
1921
|
+
kind: "file";
|
|
1925
1922
|
metadata?: Record<string, unknown> | undefined;
|
|
1926
1923
|
} | {
|
|
1927
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1928
1924
|
text: string;
|
|
1925
|
+
kind: "text";
|
|
1929
1926
|
metadata?: Record<string, unknown> | undefined;
|
|
1930
1927
|
} | {
|
|
1931
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1932
1928
|
data: Record<string, unknown>;
|
|
1929
|
+
kind: "data";
|
|
1933
1930
|
metadata?: Record<string, unknown> | undefined;
|
|
1934
1931
|
})[];
|
|
1932
|
+
role: "user" | "agent";
|
|
1935
1933
|
messageId: string;
|
|
1936
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1937
1934
|
metadata?: Record<string, unknown> | undefined;
|
|
1938
1935
|
extensions?: string[] | undefined;
|
|
1939
1936
|
referenceTaskIds?: string[] | undefined;
|
|
@@ -1942,16 +1939,18 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1942
1939
|
} | undefined;
|
|
1943
1940
|
timestamp?: string | undefined;
|
|
1944
1941
|
};
|
|
1942
|
+
kind: "status-update";
|
|
1943
|
+
taskId: string;
|
|
1944
|
+
contextId: string;
|
|
1945
1945
|
final: boolean;
|
|
1946
1946
|
metadata?: Record<string, unknown> | undefined;
|
|
1947
1947
|
} | {
|
|
1948
|
+
kind: "artifact-update";
|
|
1948
1949
|
taskId: string;
|
|
1949
1950
|
contextId: string;
|
|
1950
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1951
1951
|
artifact: {
|
|
1952
1952
|
artifactId: string;
|
|
1953
1953
|
parts: ({
|
|
1954
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1955
1954
|
file: {
|
|
1956
1955
|
bytes: string;
|
|
1957
1956
|
name?: string | undefined;
|
|
@@ -1963,24 +1962,25 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1963
1962
|
mimeType?: string | undefined;
|
|
1964
1963
|
bytes?: undefined;
|
|
1965
1964
|
};
|
|
1965
|
+
kind: "file";
|
|
1966
1966
|
metadata?: Record<string, unknown> | undefined;
|
|
1967
1967
|
} | {
|
|
1968
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1969
1968
|
text: string;
|
|
1969
|
+
kind: "text";
|
|
1970
1970
|
metadata?: Record<string, unknown> | undefined;
|
|
1971
1971
|
} | {
|
|
1972
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1973
1972
|
data: Record<string, unknown>;
|
|
1973
|
+
kind: "data";
|
|
1974
1974
|
metadata?: Record<string, unknown> | undefined;
|
|
1975
1975
|
})[];
|
|
1976
|
-
name?: string | undefined;
|
|
1977
1976
|
description?: string | undefined;
|
|
1977
|
+
name?: string | undefined;
|
|
1978
1978
|
metadata?: Record<string, unknown> | undefined;
|
|
1979
1979
|
extension?: string[] | undefined;
|
|
1980
1980
|
};
|
|
1981
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1981
1982
|
append?: boolean | undefined;
|
|
1982
1983
|
lastChunk?: boolean | undefined;
|
|
1983
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1984
1984
|
}, void, unknown>;
|
|
1985
1985
|
meta: object;
|
|
1986
1986
|
}>;
|
|
@@ -1988,9 +1988,8 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
1988
1988
|
tasks: import("@trpc/server").TRPCBuiltRouter<{
|
|
1989
1989
|
ctx: import("../trpc.js").A2AExecutionEnvironment<{
|
|
1990
1990
|
message: {
|
|
1991
|
-
|
|
1991
|
+
kind: "message";
|
|
1992
1992
|
parts: ({
|
|
1993
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
1994
1993
|
file: {
|
|
1995
1994
|
bytes: string;
|
|
1996
1995
|
name?: string | undefined;
|
|
@@ -2002,26 +2001,27 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2002
2001
|
mimeType?: string | undefined;
|
|
2003
2002
|
bytes?: undefined;
|
|
2004
2003
|
};
|
|
2004
|
+
kind: "file";
|
|
2005
2005
|
metadata?: Record<string, unknown> | undefined;
|
|
2006
2006
|
} | {
|
|
2007
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2008
2007
|
text: string;
|
|
2008
|
+
kind: "text";
|
|
2009
2009
|
metadata?: Record<string, unknown> | undefined;
|
|
2010
2010
|
} | {
|
|
2011
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2012
2011
|
data: Record<string, unknown>;
|
|
2012
|
+
kind: "data";
|
|
2013
2013
|
metadata?: Record<string, unknown> | undefined;
|
|
2014
2014
|
})[];
|
|
2015
|
+
role: "user" | "agent";
|
|
2015
2016
|
messageId: string;
|
|
2016
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2017
2017
|
metadata?: Record<string, unknown> | undefined;
|
|
2018
2018
|
extensions?: string[] | undefined;
|
|
2019
2019
|
referenceTaskIds?: string[] | undefined;
|
|
2020
2020
|
taskId?: string | undefined;
|
|
2021
2021
|
contextId?: string | undefined;
|
|
2022
2022
|
};
|
|
2023
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2023
2024
|
configuration?: {
|
|
2024
|
-
acceptedOutputModes?: string[] | undefined;
|
|
2025
2025
|
historyLength?: number | undefined;
|
|
2026
2026
|
pushNotificationConfig?: {
|
|
2027
2027
|
url: string;
|
|
@@ -2032,9 +2032,9 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2032
2032
|
credentials?: string | undefined;
|
|
2033
2033
|
} | undefined;
|
|
2034
2034
|
} | undefined;
|
|
2035
|
+
acceptedOutputModes?: string[] | undefined;
|
|
2035
2036
|
blocking?: boolean | undefined;
|
|
2036
2037
|
} | undefined;
|
|
2037
|
-
metadata?: Record<string, unknown> | undefined;
|
|
2038
2038
|
}, import("../../../../index.js").TaskAndHistory, import("../../../../index.js").UpdateEvent>;
|
|
2039
2039
|
meta: object;
|
|
2040
2040
|
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
@@ -2046,9 +2046,8 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2046
2046
|
metadata?: Record<string, unknown> | undefined;
|
|
2047
2047
|
};
|
|
2048
2048
|
output: AsyncIterable<{
|
|
2049
|
-
|
|
2049
|
+
kind: "message";
|
|
2050
2050
|
parts: ({
|
|
2051
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2052
2051
|
file: {
|
|
2053
2052
|
bytes: string;
|
|
2054
2053
|
name?: string | undefined;
|
|
@@ -2060,31 +2059,30 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2060
2059
|
mimeType?: string | undefined;
|
|
2061
2060
|
bytes?: undefined;
|
|
2062
2061
|
};
|
|
2062
|
+
kind: "file";
|
|
2063
2063
|
metadata?: Record<string, unknown> | undefined;
|
|
2064
2064
|
} | {
|
|
2065
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2066
2065
|
text: string;
|
|
2066
|
+
kind: "text";
|
|
2067
2067
|
metadata?: Record<string, unknown> | undefined;
|
|
2068
2068
|
} | {
|
|
2069
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2070
2069
|
data: Record<string, unknown>;
|
|
2070
|
+
kind: "data";
|
|
2071
2071
|
metadata?: Record<string, unknown> | undefined;
|
|
2072
2072
|
})[];
|
|
2073
|
+
role: "user" | "agent";
|
|
2073
2074
|
messageId: string;
|
|
2074
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2075
2075
|
metadata?: Record<string, unknown> | undefined;
|
|
2076
2076
|
extensions?: string[] | undefined;
|
|
2077
2077
|
referenceTaskIds?: string[] | undefined;
|
|
2078
2078
|
taskId?: string | undefined;
|
|
2079
2079
|
contextId?: string | undefined;
|
|
2080
2080
|
} | {
|
|
2081
|
-
id: string;
|
|
2082
2081
|
status: {
|
|
2083
2082
|
state: "unknown" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required";
|
|
2084
2083
|
message?: {
|
|
2085
|
-
|
|
2084
|
+
kind: "message";
|
|
2086
2085
|
parts: ({
|
|
2087
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2088
2086
|
file: {
|
|
2089
2087
|
bytes: string;
|
|
2090
2088
|
name?: string | undefined;
|
|
@@ -2096,18 +2094,19 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2096
2094
|
mimeType?: string | undefined;
|
|
2097
2095
|
bytes?: undefined;
|
|
2098
2096
|
};
|
|
2097
|
+
kind: "file";
|
|
2099
2098
|
metadata?: Record<string, unknown> | undefined;
|
|
2100
2099
|
} | {
|
|
2101
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2102
2100
|
text: string;
|
|
2101
|
+
kind: "text";
|
|
2103
2102
|
metadata?: Record<string, unknown> | undefined;
|
|
2104
2103
|
} | {
|
|
2105
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2106
2104
|
data: Record<string, unknown>;
|
|
2105
|
+
kind: "data";
|
|
2107
2106
|
metadata?: Record<string, unknown> | undefined;
|
|
2108
2107
|
})[];
|
|
2108
|
+
role: "user" | "agent";
|
|
2109
2109
|
messageId: string;
|
|
2110
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2111
2110
|
metadata?: Record<string, unknown> | undefined;
|
|
2112
2111
|
extensions?: string[] | undefined;
|
|
2113
2112
|
referenceTaskIds?: string[] | undefined;
|
|
@@ -2116,12 +2115,13 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2116
2115
|
} | undefined;
|
|
2117
2116
|
timestamp?: string | undefined;
|
|
2118
2117
|
};
|
|
2119
|
-
|
|
2118
|
+
id: string;
|
|
2119
|
+
kind: "task";
|
|
2120
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2120
2121
|
contextId?: string | undefined;
|
|
2121
2122
|
history?: {
|
|
2122
|
-
|
|
2123
|
+
kind: "message";
|
|
2123
2124
|
parts: ({
|
|
2124
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2125
2125
|
file: {
|
|
2126
2126
|
bytes: string;
|
|
2127
2127
|
name?: string | undefined;
|
|
@@ -2133,18 +2133,19 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2133
2133
|
mimeType?: string | undefined;
|
|
2134
2134
|
bytes?: undefined;
|
|
2135
2135
|
};
|
|
2136
|
+
kind: "file";
|
|
2136
2137
|
metadata?: Record<string, unknown> | undefined;
|
|
2137
2138
|
} | {
|
|
2138
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2139
2139
|
text: string;
|
|
2140
|
+
kind: "text";
|
|
2140
2141
|
metadata?: Record<string, unknown> | undefined;
|
|
2141
2142
|
} | {
|
|
2142
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2143
2143
|
data: Record<string, unknown>;
|
|
2144
|
+
kind: "data";
|
|
2144
2145
|
metadata?: Record<string, unknown> | undefined;
|
|
2145
2146
|
})[];
|
|
2147
|
+
role: "user" | "agent";
|
|
2146
2148
|
messageId: string;
|
|
2147
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2148
2149
|
metadata?: Record<string, unknown> | undefined;
|
|
2149
2150
|
extensions?: string[] | undefined;
|
|
2150
2151
|
referenceTaskIds?: string[] | undefined;
|
|
@@ -2154,7 +2155,6 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2154
2155
|
artifacts?: {
|
|
2155
2156
|
artifactId: string;
|
|
2156
2157
|
parts: ({
|
|
2157
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2158
2158
|
file: {
|
|
2159
2159
|
bytes: string;
|
|
2160
2160
|
name?: string | undefined;
|
|
@@ -2166,32 +2166,28 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2166
2166
|
mimeType?: string | undefined;
|
|
2167
2167
|
bytes?: undefined;
|
|
2168
2168
|
};
|
|
2169
|
+
kind: "file";
|
|
2169
2170
|
metadata?: Record<string, unknown> | undefined;
|
|
2170
2171
|
} | {
|
|
2171
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2172
2172
|
text: string;
|
|
2173
|
+
kind: "text";
|
|
2173
2174
|
metadata?: Record<string, unknown> | undefined;
|
|
2174
2175
|
} | {
|
|
2175
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2176
2176
|
data: Record<string, unknown>;
|
|
2177
|
+
kind: "data";
|
|
2177
2178
|
metadata?: Record<string, unknown> | undefined;
|
|
2178
2179
|
})[];
|
|
2179
|
-
name?: string | undefined;
|
|
2180
2180
|
description?: string | undefined;
|
|
2181
|
+
name?: string | undefined;
|
|
2181
2182
|
metadata?: Record<string, unknown> | undefined;
|
|
2182
2183
|
extension?: string[] | undefined;
|
|
2183
2184
|
}[] | undefined;
|
|
2184
|
-
metadata?: Record<string, unknown> | undefined;
|
|
2185
2185
|
} | {
|
|
2186
|
-
taskId: string;
|
|
2187
|
-
contextId: string;
|
|
2188
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2189
2186
|
status: {
|
|
2190
2187
|
state: "unknown" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required";
|
|
2191
2188
|
message?: {
|
|
2192
|
-
|
|
2189
|
+
kind: "message";
|
|
2193
2190
|
parts: ({
|
|
2194
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2195
2191
|
file: {
|
|
2196
2192
|
bytes: string;
|
|
2197
2193
|
name?: string | undefined;
|
|
@@ -2203,18 +2199,19 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2203
2199
|
mimeType?: string | undefined;
|
|
2204
2200
|
bytes?: undefined;
|
|
2205
2201
|
};
|
|
2202
|
+
kind: "file";
|
|
2206
2203
|
metadata?: Record<string, unknown> | undefined;
|
|
2207
2204
|
} | {
|
|
2208
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2209
2205
|
text: string;
|
|
2206
|
+
kind: "text";
|
|
2210
2207
|
metadata?: Record<string, unknown> | undefined;
|
|
2211
2208
|
} | {
|
|
2212
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2213
2209
|
data: Record<string, unknown>;
|
|
2210
|
+
kind: "data";
|
|
2214
2211
|
metadata?: Record<string, unknown> | undefined;
|
|
2215
2212
|
})[];
|
|
2213
|
+
role: "user" | "agent";
|
|
2216
2214
|
messageId: string;
|
|
2217
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2218
2215
|
metadata?: Record<string, unknown> | undefined;
|
|
2219
2216
|
extensions?: string[] | undefined;
|
|
2220
2217
|
referenceTaskIds?: string[] | undefined;
|
|
@@ -2223,16 +2220,18 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2223
2220
|
} | undefined;
|
|
2224
2221
|
timestamp?: string | undefined;
|
|
2225
2222
|
};
|
|
2223
|
+
kind: "status-update";
|
|
2224
|
+
taskId: string;
|
|
2225
|
+
contextId: string;
|
|
2226
2226
|
final: boolean;
|
|
2227
2227
|
metadata?: Record<string, unknown> | undefined;
|
|
2228
2228
|
} | {
|
|
2229
|
+
kind: "artifact-update";
|
|
2229
2230
|
taskId: string;
|
|
2230
2231
|
contextId: string;
|
|
2231
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2232
2232
|
artifact: {
|
|
2233
2233
|
artifactId: string;
|
|
2234
2234
|
parts: ({
|
|
2235
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2236
2235
|
file: {
|
|
2237
2236
|
bytes: string;
|
|
2238
2237
|
name?: string | undefined;
|
|
@@ -2244,24 +2243,25 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2244
2243
|
mimeType?: string | undefined;
|
|
2245
2244
|
bytes?: undefined;
|
|
2246
2245
|
};
|
|
2246
|
+
kind: "file";
|
|
2247
2247
|
metadata?: Record<string, unknown> | undefined;
|
|
2248
2248
|
} | {
|
|
2249
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2250
2249
|
text: string;
|
|
2250
|
+
kind: "text";
|
|
2251
2251
|
metadata?: Record<string, unknown> | undefined;
|
|
2252
2252
|
} | {
|
|
2253
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2254
2253
|
data: Record<string, unknown>;
|
|
2254
|
+
kind: "data";
|
|
2255
2255
|
metadata?: Record<string, unknown> | undefined;
|
|
2256
2256
|
})[];
|
|
2257
|
-
name?: string | undefined;
|
|
2258
2257
|
description?: string | undefined;
|
|
2258
|
+
name?: string | undefined;
|
|
2259
2259
|
metadata?: Record<string, unknown> | undefined;
|
|
2260
2260
|
extension?: string[] | undefined;
|
|
2261
2261
|
};
|
|
2262
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2262
2263
|
append?: boolean | undefined;
|
|
2263
2264
|
lastChunk?: boolean | undefined;
|
|
2264
|
-
metadata?: Record<string, unknown> | undefined;
|
|
2265
2265
|
}, void, unknown>;
|
|
2266
2266
|
meta: object;
|
|
2267
2267
|
}>;
|
|
@@ -2271,13 +2271,11 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2271
2271
|
metadata?: Record<string, unknown> | undefined;
|
|
2272
2272
|
};
|
|
2273
2273
|
output: {
|
|
2274
|
-
id: string;
|
|
2275
2274
|
status: {
|
|
2276
2275
|
state: "unknown" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required";
|
|
2277
2276
|
message?: {
|
|
2278
|
-
|
|
2277
|
+
kind: "message";
|
|
2279
2278
|
parts: ({
|
|
2280
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2281
2279
|
file: {
|
|
2282
2280
|
bytes: string;
|
|
2283
2281
|
name?: string | undefined;
|
|
@@ -2289,18 +2287,19 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2289
2287
|
mimeType?: string | undefined;
|
|
2290
2288
|
bytes?: undefined;
|
|
2291
2289
|
};
|
|
2290
|
+
kind: "file";
|
|
2292
2291
|
metadata?: Record<string, unknown> | undefined;
|
|
2293
2292
|
} | {
|
|
2294
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2295
2293
|
text: string;
|
|
2294
|
+
kind: "text";
|
|
2296
2295
|
metadata?: Record<string, unknown> | undefined;
|
|
2297
2296
|
} | {
|
|
2298
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2299
2297
|
data: Record<string, unknown>;
|
|
2298
|
+
kind: "data";
|
|
2300
2299
|
metadata?: Record<string, unknown> | undefined;
|
|
2301
2300
|
})[];
|
|
2301
|
+
role: "user" | "agent";
|
|
2302
2302
|
messageId: string;
|
|
2303
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2304
2303
|
metadata?: Record<string, unknown> | undefined;
|
|
2305
2304
|
extensions?: string[] | undefined;
|
|
2306
2305
|
referenceTaskIds?: string[] | undefined;
|
|
@@ -2309,12 +2308,13 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2309
2308
|
} | undefined;
|
|
2310
2309
|
timestamp?: string | undefined;
|
|
2311
2310
|
};
|
|
2312
|
-
|
|
2311
|
+
id: string;
|
|
2312
|
+
kind: "task";
|
|
2313
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2313
2314
|
contextId?: string | undefined;
|
|
2314
2315
|
history?: {
|
|
2315
|
-
|
|
2316
|
+
kind: "message";
|
|
2316
2317
|
parts: ({
|
|
2317
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2318
2318
|
file: {
|
|
2319
2319
|
bytes: string;
|
|
2320
2320
|
name?: string | undefined;
|
|
@@ -2326,18 +2326,19 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2326
2326
|
mimeType?: string | undefined;
|
|
2327
2327
|
bytes?: undefined;
|
|
2328
2328
|
};
|
|
2329
|
+
kind: "file";
|
|
2329
2330
|
metadata?: Record<string, unknown> | undefined;
|
|
2330
2331
|
} | {
|
|
2331
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2332
2332
|
text: string;
|
|
2333
|
+
kind: "text";
|
|
2333
2334
|
metadata?: Record<string, unknown> | undefined;
|
|
2334
2335
|
} | {
|
|
2335
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2336
2336
|
data: Record<string, unknown>;
|
|
2337
|
+
kind: "data";
|
|
2337
2338
|
metadata?: Record<string, unknown> | undefined;
|
|
2338
2339
|
})[];
|
|
2340
|
+
role: "user" | "agent";
|
|
2339
2341
|
messageId: string;
|
|
2340
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2341
2342
|
metadata?: Record<string, unknown> | undefined;
|
|
2342
2343
|
extensions?: string[] | undefined;
|
|
2343
2344
|
referenceTaskIds?: string[] | undefined;
|
|
@@ -2347,7 +2348,6 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2347
2348
|
artifacts?: {
|
|
2348
2349
|
artifactId: string;
|
|
2349
2350
|
parts: ({
|
|
2350
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2351
2351
|
file: {
|
|
2352
2352
|
bytes: string;
|
|
2353
2353
|
name?: string | undefined;
|
|
@@ -2359,22 +2359,22 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2359
2359
|
mimeType?: string | undefined;
|
|
2360
2360
|
bytes?: undefined;
|
|
2361
2361
|
};
|
|
2362
|
+
kind: "file";
|
|
2362
2363
|
metadata?: Record<string, unknown> | undefined;
|
|
2363
2364
|
} | {
|
|
2364
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2365
2365
|
text: string;
|
|
2366
|
+
kind: "text";
|
|
2366
2367
|
metadata?: Record<string, unknown> | undefined;
|
|
2367
2368
|
} | {
|
|
2368
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2369
2369
|
data: Record<string, unknown>;
|
|
2370
|
+
kind: "data";
|
|
2370
2371
|
metadata?: Record<string, unknown> | undefined;
|
|
2371
2372
|
})[];
|
|
2372
|
-
name?: string | undefined;
|
|
2373
2373
|
description?: string | undefined;
|
|
2374
|
+
name?: string | undefined;
|
|
2374
2375
|
metadata?: Record<string, unknown> | undefined;
|
|
2375
2376
|
extension?: string[] | undefined;
|
|
2376
2377
|
}[] | undefined;
|
|
2377
|
-
metadata?: Record<string, unknown> | undefined;
|
|
2378
2378
|
};
|
|
2379
2379
|
meta: object;
|
|
2380
2380
|
}>;
|
|
@@ -2384,13 +2384,11 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2384
2384
|
metadata?: Record<string, unknown> | undefined;
|
|
2385
2385
|
};
|
|
2386
2386
|
output: {
|
|
2387
|
-
id: string;
|
|
2388
2387
|
status: {
|
|
2389
2388
|
state: "unknown" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required";
|
|
2390
2389
|
message?: {
|
|
2391
|
-
|
|
2390
|
+
kind: "message";
|
|
2392
2391
|
parts: ({
|
|
2393
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2394
2392
|
file: {
|
|
2395
2393
|
bytes: string;
|
|
2396
2394
|
name?: string | undefined;
|
|
@@ -2402,18 +2400,19 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2402
2400
|
mimeType?: string | undefined;
|
|
2403
2401
|
bytes?: undefined;
|
|
2404
2402
|
};
|
|
2403
|
+
kind: "file";
|
|
2405
2404
|
metadata?: Record<string, unknown> | undefined;
|
|
2406
2405
|
} | {
|
|
2407
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2408
2406
|
text: string;
|
|
2407
|
+
kind: "text";
|
|
2409
2408
|
metadata?: Record<string, unknown> | undefined;
|
|
2410
2409
|
} | {
|
|
2411
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2412
2410
|
data: Record<string, unknown>;
|
|
2411
|
+
kind: "data";
|
|
2413
2412
|
metadata?: Record<string, unknown> | undefined;
|
|
2414
2413
|
})[];
|
|
2414
|
+
role: "user" | "agent";
|
|
2415
2415
|
messageId: string;
|
|
2416
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2417
2416
|
metadata?: Record<string, unknown> | undefined;
|
|
2418
2417
|
extensions?: string[] | undefined;
|
|
2419
2418
|
referenceTaskIds?: string[] | undefined;
|
|
@@ -2422,12 +2421,13 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2422
2421
|
} | undefined;
|
|
2423
2422
|
timestamp?: string | undefined;
|
|
2424
2423
|
};
|
|
2425
|
-
|
|
2424
|
+
id: string;
|
|
2425
|
+
kind: "task";
|
|
2426
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2426
2427
|
contextId?: string | undefined;
|
|
2427
2428
|
history?: {
|
|
2428
|
-
|
|
2429
|
+
kind: "message";
|
|
2429
2430
|
parts: ({
|
|
2430
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2431
2431
|
file: {
|
|
2432
2432
|
bytes: string;
|
|
2433
2433
|
name?: string | undefined;
|
|
@@ -2439,18 +2439,19 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2439
2439
|
mimeType?: string | undefined;
|
|
2440
2440
|
bytes?: undefined;
|
|
2441
2441
|
};
|
|
2442
|
+
kind: "file";
|
|
2442
2443
|
metadata?: Record<string, unknown> | undefined;
|
|
2443
2444
|
} | {
|
|
2444
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2445
2445
|
text: string;
|
|
2446
|
+
kind: "text";
|
|
2446
2447
|
metadata?: Record<string, unknown> | undefined;
|
|
2447
2448
|
} | {
|
|
2448
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2449
2449
|
data: Record<string, unknown>;
|
|
2450
|
+
kind: "data";
|
|
2450
2451
|
metadata?: Record<string, unknown> | undefined;
|
|
2451
2452
|
})[];
|
|
2453
|
+
role: "user" | "agent";
|
|
2452
2454
|
messageId: string;
|
|
2453
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2454
2455
|
metadata?: Record<string, unknown> | undefined;
|
|
2455
2456
|
extensions?: string[] | undefined;
|
|
2456
2457
|
referenceTaskIds?: string[] | undefined;
|
|
@@ -2460,7 +2461,6 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2460
2461
|
artifacts?: {
|
|
2461
2462
|
artifactId: string;
|
|
2462
2463
|
parts: ({
|
|
2463
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2464
2464
|
file: {
|
|
2465
2465
|
bytes: string;
|
|
2466
2466
|
name?: string | undefined;
|
|
@@ -2472,31 +2472,30 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2472
2472
|
mimeType?: string | undefined;
|
|
2473
2473
|
bytes?: undefined;
|
|
2474
2474
|
};
|
|
2475
|
+
kind: "file";
|
|
2475
2476
|
metadata?: Record<string, unknown> | undefined;
|
|
2476
2477
|
} | {
|
|
2477
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2478
2478
|
text: string;
|
|
2479
|
+
kind: "text";
|
|
2479
2480
|
metadata?: Record<string, unknown> | undefined;
|
|
2480
2481
|
} | {
|
|
2481
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2482
2482
|
data: Record<string, unknown>;
|
|
2483
|
+
kind: "data";
|
|
2483
2484
|
metadata?: Record<string, unknown> | undefined;
|
|
2484
2485
|
})[];
|
|
2485
|
-
name?: string | undefined;
|
|
2486
2486
|
description?: string | undefined;
|
|
2487
|
+
name?: string | undefined;
|
|
2487
2488
|
metadata?: Record<string, unknown> | undefined;
|
|
2488
2489
|
extension?: string[] | undefined;
|
|
2489
2490
|
}[] | undefined;
|
|
2490
|
-
metadata?: Record<string, unknown> | undefined;
|
|
2491
2491
|
};
|
|
2492
2492
|
meta: object;
|
|
2493
2493
|
}>;
|
|
2494
2494
|
pushNotificationConfig: import("@trpc/server").TRPCBuiltRouter<{
|
|
2495
2495
|
ctx: import("../trpc.js").A2AExecutionEnvironment<{
|
|
2496
2496
|
message: {
|
|
2497
|
-
|
|
2497
|
+
kind: "message";
|
|
2498
2498
|
parts: ({
|
|
2499
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2500
2499
|
file: {
|
|
2501
2500
|
bytes: string;
|
|
2502
2501
|
name?: string | undefined;
|
|
@@ -2508,26 +2507,27 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2508
2507
|
mimeType?: string | undefined;
|
|
2509
2508
|
bytes?: undefined;
|
|
2510
2509
|
};
|
|
2510
|
+
kind: "file";
|
|
2511
2511
|
metadata?: Record<string, unknown> | undefined;
|
|
2512
2512
|
} | {
|
|
2513
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2514
2513
|
text: string;
|
|
2514
|
+
kind: "text";
|
|
2515
2515
|
metadata?: Record<string, unknown> | undefined;
|
|
2516
2516
|
} | {
|
|
2517
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2518
2517
|
data: Record<string, unknown>;
|
|
2518
|
+
kind: "data";
|
|
2519
2519
|
metadata?: Record<string, unknown> | undefined;
|
|
2520
2520
|
})[];
|
|
2521
|
+
role: "user" | "agent";
|
|
2521
2522
|
messageId: string;
|
|
2522
|
-
kind: "artifact-update" | "data" | "file" | "message" | "status-update" | "task" | "text";
|
|
2523
2523
|
metadata?: Record<string, unknown> | undefined;
|
|
2524
2524
|
extensions?: string[] | undefined;
|
|
2525
2525
|
referenceTaskIds?: string[] | undefined;
|
|
2526
2526
|
taskId?: string | undefined;
|
|
2527
2527
|
contextId?: string | undefined;
|
|
2528
2528
|
};
|
|
2529
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2529
2530
|
configuration?: {
|
|
2530
|
-
acceptedOutputModes?: string[] | undefined;
|
|
2531
2531
|
historyLength?: number | undefined;
|
|
2532
2532
|
pushNotificationConfig?: {
|
|
2533
2533
|
url: string;
|
|
@@ -2538,9 +2538,9 @@ export declare const createAgentRouter: () => import("@trpc/server").TRPCBuiltRo
|
|
|
2538
2538
|
credentials?: string | undefined;
|
|
2539
2539
|
} | undefined;
|
|
2540
2540
|
} | undefined;
|
|
2541
|
+
acceptedOutputModes?: string[] | undefined;
|
|
2541
2542
|
blocking?: boolean | undefined;
|
|
2542
2543
|
} | undefined;
|
|
2543
|
-
metadata?: Record<string, unknown> | undefined;
|
|
2544
2544
|
}, import("../../../../index.js").TaskAndHistory, import("../../../../index.js").UpdateEvent>;
|
|
2545
2545
|
meta: object;
|
|
2546
2546
|
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|