@ag-ui/core 0.0.47 → 0.0.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -51,14 +51,14 @@ declare const BaseMessageSchema: z.ZodObject<{
51
51
  }, "strip", z.ZodTypeAny, {
52
52
  role: string;
53
53
  id: string;
54
- content?: string | undefined;
55
54
  name?: string | undefined;
55
+ content?: string | undefined;
56
56
  encryptedValue?: string | undefined;
57
57
  }, {
58
58
  role: string;
59
59
  id: string;
60
- content?: string | undefined;
61
60
  name?: string | undefined;
61
+ content?: string | undefined;
62
62
  encryptedValue?: string | undefined;
63
63
  }>;
64
64
  declare const TextInputContentSchema: z.ZodObject<{
@@ -239,8 +239,8 @@ declare const AssistantMessageSchema: z.ZodObject<{
239
239
  }, "strip", z.ZodTypeAny, {
240
240
  role: "assistant";
241
241
  id: string;
242
- content?: string | undefined;
243
242
  name?: string | undefined;
243
+ content?: string | undefined;
244
244
  encryptedValue?: string | undefined;
245
245
  toolCalls?: {
246
246
  function: {
@@ -254,8 +254,8 @@ declare const AssistantMessageSchema: z.ZodObject<{
254
254
  }, {
255
255
  role: "assistant";
256
256
  id: string;
257
- content?: string | undefined;
258
257
  name?: string | undefined;
258
+ content?: string | undefined;
259
259
  encryptedValue?: string | undefined;
260
260
  toolCalls?: {
261
261
  function: {
@@ -490,8 +490,8 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
490
490
  }, "strip", z.ZodTypeAny, {
491
491
  role: "assistant";
492
492
  id: string;
493
- content?: string | undefined;
494
493
  name?: string | undefined;
494
+ content?: string | undefined;
495
495
  encryptedValue?: string | undefined;
496
496
  toolCalls?: {
497
497
  function: {
@@ -505,8 +505,8 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
505
505
  }, {
506
506
  role: "assistant";
507
507
  id: string;
508
- content?: string | undefined;
509
508
  name?: string | undefined;
509
+ content?: string | undefined;
510
510
  encryptedValue?: string | undefined;
511
511
  toolCalls?: {
512
512
  function: {
@@ -766,8 +766,8 @@ declare const RunAgentInputSchema: z.ZodObject<{
766
766
  }, "strip", z.ZodTypeAny, {
767
767
  role: "assistant";
768
768
  id: string;
769
- content?: string | undefined;
770
769
  name?: string | undefined;
770
+ content?: string | undefined;
771
771
  encryptedValue?: string | undefined;
772
772
  toolCalls?: {
773
773
  function: {
@@ -781,8 +781,8 @@ declare const RunAgentInputSchema: z.ZodObject<{
781
781
  }, {
782
782
  role: "assistant";
783
783
  id: string;
784
- content?: string | undefined;
785
784
  name?: string | undefined;
785
+ content?: string | undefined;
786
786
  encryptedValue?: string | undefined;
787
787
  toolCalls?: {
788
788
  function: {
@@ -974,8 +974,8 @@ declare const RunAgentInputSchema: z.ZodObject<{
974
974
  } | {
975
975
  role: "assistant";
976
976
  id: string;
977
- content?: string | undefined;
978
977
  name?: string | undefined;
978
+ content?: string | undefined;
979
979
  encryptedValue?: string | undefined;
980
980
  toolCalls?: {
981
981
  function: {
@@ -1050,8 +1050,8 @@ declare const RunAgentInputSchema: z.ZodObject<{
1050
1050
  } | {
1051
1051
  role: "assistant";
1052
1052
  id: string;
1053
- content?: string | undefined;
1054
1053
  name?: string | undefined;
1054
+ content?: string | undefined;
1055
1055
  encryptedValue?: string | undefined;
1056
1056
  toolCalls?: {
1057
1057
  function: {
@@ -1137,6 +1137,810 @@ declare class AGUIConnectNotImplementedError extends AGUIError {
1137
1137
  constructor();
1138
1138
  }
1139
1139
  //#endregion
1140
+ //#region src/capabilities.d.ts
1141
+ /** Describes a sub-agent that can be invoked by a parent agent. */
1142
+ declare const SubAgentInfoSchema: z.ZodObject<{
1143
+ /** Unique name or identifier of the sub-agent. */name: z.ZodString; /** What this sub-agent specializes in. Helps clients build agent selection UIs. */
1144
+ description: z.ZodOptional<z.ZodString>;
1145
+ }, "strip", z.ZodTypeAny, {
1146
+ name: string;
1147
+ description?: string | undefined;
1148
+ }, {
1149
+ name: string;
1150
+ description?: string | undefined;
1151
+ }>;
1152
+ /**
1153
+ * Basic metadata about the agent. Useful for discovery UIs, agent marketplaces,
1154
+ * and debugging. Set these when you want clients to display agent information
1155
+ * or when multiple agents are available and users need to pick one.
1156
+ */
1157
+ declare const IdentityCapabilitiesSchema: z.ZodObject<{
1158
+ /** Human-readable name shown in UIs and agent selectors. */name: z.ZodOptional<z.ZodString>; /** The framework or platform powering this agent (e.g., "langgraph", "mastra", "crewai"). */
1159
+ type: z.ZodOptional<z.ZodString>; /** What this agent does — helps users and routing logic decide when to use it. */
1160
+ description: z.ZodOptional<z.ZodString>; /** Semantic version of the agent (e.g., "1.2.0"). Useful for compatibility checks. */
1161
+ version: z.ZodOptional<z.ZodString>; /** Organization or team that maintains this agent. */
1162
+ provider: z.ZodOptional<z.ZodString>; /** URL to the agent's documentation or homepage. */
1163
+ documentationUrl: z.ZodOptional<z.ZodString>; /** Arbitrary key-value pairs for integration-specific identity info. */
1164
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1165
+ }, "strip", z.ZodTypeAny, {
1166
+ type?: string | undefined;
1167
+ name?: string | undefined;
1168
+ description?: string | undefined;
1169
+ version?: string | undefined;
1170
+ provider?: string | undefined;
1171
+ documentationUrl?: string | undefined;
1172
+ metadata?: Record<string, unknown> | undefined;
1173
+ }, {
1174
+ type?: string | undefined;
1175
+ name?: string | undefined;
1176
+ description?: string | undefined;
1177
+ version?: string | undefined;
1178
+ provider?: string | undefined;
1179
+ documentationUrl?: string | undefined;
1180
+ metadata?: Record<string, unknown> | undefined;
1181
+ }>;
1182
+ /**
1183
+ * Declares which transport mechanisms the agent supports. Clients use this
1184
+ * to pick the best connection strategy. Only set flags to `true` for transports
1185
+ * your agent actually handles — omit or set `false` for unsupported ones.
1186
+ */
1187
+ declare const TransportCapabilitiesSchema: z.ZodObject<{
1188
+ /** Set `true` if the agent streams responses via SSE. Most agents enable this. */streaming: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent accepts persistent WebSocket connections. */
1189
+ websocket: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent supports the AG-UI binary protocol (protobuf over HTTP). */
1190
+ httpBinary: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent can send async updates via webhooks after a run finishes. */
1191
+ pushNotifications: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent supports resuming interrupted streams via sequence numbers. */
1192
+ resumable: z.ZodOptional<z.ZodBoolean>;
1193
+ }, "strip", z.ZodTypeAny, {
1194
+ streaming?: boolean | undefined;
1195
+ websocket?: boolean | undefined;
1196
+ httpBinary?: boolean | undefined;
1197
+ pushNotifications?: boolean | undefined;
1198
+ resumable?: boolean | undefined;
1199
+ }, {
1200
+ streaming?: boolean | undefined;
1201
+ websocket?: boolean | undefined;
1202
+ httpBinary?: boolean | undefined;
1203
+ pushNotifications?: boolean | undefined;
1204
+ resumable?: boolean | undefined;
1205
+ }>;
1206
+ /**
1207
+ * Tool calling capabilities. Distinguishes between tools the agent itself provides
1208
+ * (listed in `items`) and tools the client passes at runtime via `RunAgentInput.tools`.
1209
+ * Enable this when your agent can call functions, search the web, execute code, etc.
1210
+ */
1211
+ declare const ToolsCapabilitiesSchema: z.ZodObject<{
1212
+ /** Set `true` if the agent can make tool calls at all. Set `false` to explicitly
1213
+ * signal tool calling is disabled even if items are present. */
1214
+ supported: z.ZodOptional<z.ZodBoolean>;
1215
+ /** The tools this agent provides on its own (full JSON Schema definitions).
1216
+ * These are distinct from client-provided tools passed in `RunAgentInput.tools`. */
1217
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
1218
+ name: z.ZodString;
1219
+ description: z.ZodString;
1220
+ parameters: z.ZodAny;
1221
+ }, "strip", z.ZodTypeAny, {
1222
+ name: string;
1223
+ description: string;
1224
+ parameters?: any;
1225
+ }, {
1226
+ name: string;
1227
+ description: string;
1228
+ parameters?: any;
1229
+ }>, "many">>; /** Set `true` if the agent can invoke multiple tools concurrently within a single step. */
1230
+ parallelCalls: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent accepts and uses tools provided by the client at runtime. */
1231
+ clientProvided: z.ZodOptional<z.ZodBoolean>;
1232
+ }, "strip", z.ZodTypeAny, {
1233
+ supported?: boolean | undefined;
1234
+ items?: {
1235
+ name: string;
1236
+ description: string;
1237
+ parameters?: any;
1238
+ }[] | undefined;
1239
+ parallelCalls?: boolean | undefined;
1240
+ clientProvided?: boolean | undefined;
1241
+ }, {
1242
+ supported?: boolean | undefined;
1243
+ items?: {
1244
+ name: string;
1245
+ description: string;
1246
+ parameters?: any;
1247
+ }[] | undefined;
1248
+ parallelCalls?: boolean | undefined;
1249
+ clientProvided?: boolean | undefined;
1250
+ }>;
1251
+ /**
1252
+ * Output format support. Enable `structuredOutput` when your agent can return
1253
+ * responses conforming to a JSON schema, which is useful for programmatic consumption.
1254
+ */
1255
+ declare const OutputCapabilitiesSchema: z.ZodObject<{
1256
+ /** Set `true` if the agent can produce structured JSON output matching a provided schema. */structuredOutput: z.ZodOptional<z.ZodBoolean>;
1257
+ /** MIME types the agent can produce (e.g., `["text/plain", "application/json"]`).
1258
+ * Omit if the agent only produces plain text. */
1259
+ supportedMimeTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1260
+ }, "strip", z.ZodTypeAny, {
1261
+ structuredOutput?: boolean | undefined;
1262
+ supportedMimeTypes?: string[] | undefined;
1263
+ }, {
1264
+ structuredOutput?: boolean | undefined;
1265
+ supportedMimeTypes?: string[] | undefined;
1266
+ }>;
1267
+ /**
1268
+ * State and memory management capabilities. These tell the client how the agent
1269
+ * handles shared state and whether conversation context persists across runs.
1270
+ */
1271
+ declare const StateCapabilitiesSchema: z.ZodObject<{
1272
+ /** Set `true` if the agent emits `STATE_SNAPSHOT` events (full state replacement). */snapshots: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent emits `STATE_DELTA` events (JSON Patch incremental updates). */
1273
+ deltas: z.ZodOptional<z.ZodBoolean>;
1274
+ /** Set `true` if the agent has long-term memory beyond the current thread
1275
+ * (e.g., vector store, knowledge base, or cross-session recall). */
1276
+ memory: z.ZodOptional<z.ZodBoolean>;
1277
+ /** Set `true` if state is preserved across multiple runs within the same thread.
1278
+ * When `false`, state resets on each run. */
1279
+ persistentState: z.ZodOptional<z.ZodBoolean>;
1280
+ }, "strip", z.ZodTypeAny, {
1281
+ snapshots?: boolean | undefined;
1282
+ deltas?: boolean | undefined;
1283
+ memory?: boolean | undefined;
1284
+ persistentState?: boolean | undefined;
1285
+ }, {
1286
+ snapshots?: boolean | undefined;
1287
+ deltas?: boolean | undefined;
1288
+ memory?: boolean | undefined;
1289
+ persistentState?: boolean | undefined;
1290
+ }>;
1291
+ /**
1292
+ * Multi-agent coordination capabilities. Enable these when your agent can
1293
+ * orchestrate or hand off work to other agents.
1294
+ */
1295
+ declare const MultiAgentCapabilitiesSchema: z.ZodObject<{
1296
+ /** Set `true` if the agent participates in any form of multi-agent coordination. */supported: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent can delegate subtasks to other agents while retaining control. */
1297
+ delegation: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent can transfer the conversation entirely to another agent. */
1298
+ handoffs: z.ZodOptional<z.ZodBoolean>; /** List of sub-agents this agent can invoke. Helps clients build agent selection UIs. */
1299
+ subAgents: z.ZodOptional<z.ZodArray<z.ZodObject<{
1300
+ /** Unique name or identifier of the sub-agent. */name: z.ZodString; /** What this sub-agent specializes in. Helps clients build agent selection UIs. */
1301
+ description: z.ZodOptional<z.ZodString>;
1302
+ }, "strip", z.ZodTypeAny, {
1303
+ name: string;
1304
+ description?: string | undefined;
1305
+ }, {
1306
+ name: string;
1307
+ description?: string | undefined;
1308
+ }>, "many">>;
1309
+ }, "strip", z.ZodTypeAny, {
1310
+ supported?: boolean | undefined;
1311
+ delegation?: boolean | undefined;
1312
+ handoffs?: boolean | undefined;
1313
+ subAgents?: {
1314
+ name: string;
1315
+ description?: string | undefined;
1316
+ }[] | undefined;
1317
+ }, {
1318
+ supported?: boolean | undefined;
1319
+ delegation?: boolean | undefined;
1320
+ handoffs?: boolean | undefined;
1321
+ subAgents?: {
1322
+ name: string;
1323
+ description?: string | undefined;
1324
+ }[] | undefined;
1325
+ }>;
1326
+ /**
1327
+ * Reasoning and thinking capabilities. Enable these when your agent exposes its
1328
+ * internal thought process (e.g., chain-of-thought, extended thinking).
1329
+ */
1330
+ declare const ReasoningCapabilitiesSchema: z.ZodObject<{
1331
+ /** Set `true` if the agent produces reasoning/thinking tokens visible to the client. */supported: z.ZodOptional<z.ZodBoolean>; /** Set `true` if reasoning tokens are streamed incrementally (vs. returned all at once). */
1332
+ streaming: z.ZodOptional<z.ZodBoolean>;
1333
+ /** Set `true` if reasoning content is encrypted (zero-data-retention mode).
1334
+ * Clients should expect opaque `encryptedValue` fields instead of readable content. */
1335
+ encrypted: z.ZodOptional<z.ZodBoolean>;
1336
+ }, "strip", z.ZodTypeAny, {
1337
+ streaming?: boolean | undefined;
1338
+ supported?: boolean | undefined;
1339
+ encrypted?: boolean | undefined;
1340
+ }, {
1341
+ streaming?: boolean | undefined;
1342
+ supported?: boolean | undefined;
1343
+ encrypted?: boolean | undefined;
1344
+ }>;
1345
+ /**
1346
+ * Modalities the agent can accept as input. Clients use this to show/hide
1347
+ * file upload buttons, audio recorders, image pickers, etc.
1348
+ */
1349
+ declare const MultimodalInputCapabilitiesSchema: z.ZodObject<{
1350
+ /** Set `true` if the agent can process image inputs (e.g., screenshots, photos). */image: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent can process audio inputs (speech, recordings). */
1351
+ audio: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent can process video inputs. */
1352
+ video: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent can process PDF documents. */
1353
+ pdf: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent can process arbitrary file uploads. */
1354
+ file: z.ZodOptional<z.ZodBoolean>;
1355
+ }, "strip", z.ZodTypeAny, {
1356
+ image?: boolean | undefined;
1357
+ audio?: boolean | undefined;
1358
+ video?: boolean | undefined;
1359
+ pdf?: boolean | undefined;
1360
+ file?: boolean | undefined;
1361
+ }, {
1362
+ image?: boolean | undefined;
1363
+ audio?: boolean | undefined;
1364
+ video?: boolean | undefined;
1365
+ pdf?: boolean | undefined;
1366
+ file?: boolean | undefined;
1367
+ }>;
1368
+ /**
1369
+ * Modalities the agent can produce as output. Clients use this to anticipate
1370
+ * rich content in the agent's response.
1371
+ */
1372
+ declare const MultimodalOutputCapabilitiesSchema: z.ZodObject<{
1373
+ /** Set `true` if the agent can generate images as part of its response. */image: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent can produce audio output (text-to-speech, audio files). */
1374
+ audio: z.ZodOptional<z.ZodBoolean>;
1375
+ }, "strip", z.ZodTypeAny, {
1376
+ image?: boolean | undefined;
1377
+ audio?: boolean | undefined;
1378
+ }, {
1379
+ image?: boolean | undefined;
1380
+ audio?: boolean | undefined;
1381
+ }>;
1382
+ /**
1383
+ * Multimodal input and output support. Organized into `input` and `output`
1384
+ * sub-objects so clients can independently query what the agent accepts
1385
+ * versus what it produces.
1386
+ */
1387
+ declare const MultimodalCapabilitiesSchema: z.ZodObject<{
1388
+ /** Modalities the agent can accept as input (images, audio, video, PDFs, files). */input: z.ZodOptional<z.ZodObject<{
1389
+ /** Set `true` if the agent can process image inputs (e.g., screenshots, photos). */image: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent can process audio inputs (speech, recordings). */
1390
+ audio: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent can process video inputs. */
1391
+ video: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent can process PDF documents. */
1392
+ pdf: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent can process arbitrary file uploads. */
1393
+ file: z.ZodOptional<z.ZodBoolean>;
1394
+ }, "strip", z.ZodTypeAny, {
1395
+ image?: boolean | undefined;
1396
+ audio?: boolean | undefined;
1397
+ video?: boolean | undefined;
1398
+ pdf?: boolean | undefined;
1399
+ file?: boolean | undefined;
1400
+ }, {
1401
+ image?: boolean | undefined;
1402
+ audio?: boolean | undefined;
1403
+ video?: boolean | undefined;
1404
+ pdf?: boolean | undefined;
1405
+ file?: boolean | undefined;
1406
+ }>>; /** Modalities the agent can produce as output (images, audio). */
1407
+ output: z.ZodOptional<z.ZodObject<{
1408
+ /** Set `true` if the agent can generate images as part of its response. */image: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent can produce audio output (text-to-speech, audio files). */
1409
+ audio: z.ZodOptional<z.ZodBoolean>;
1410
+ }, "strip", z.ZodTypeAny, {
1411
+ image?: boolean | undefined;
1412
+ audio?: boolean | undefined;
1413
+ }, {
1414
+ image?: boolean | undefined;
1415
+ audio?: boolean | undefined;
1416
+ }>>;
1417
+ }, "strip", z.ZodTypeAny, {
1418
+ input?: {
1419
+ image?: boolean | undefined;
1420
+ audio?: boolean | undefined;
1421
+ video?: boolean | undefined;
1422
+ pdf?: boolean | undefined;
1423
+ file?: boolean | undefined;
1424
+ } | undefined;
1425
+ output?: {
1426
+ image?: boolean | undefined;
1427
+ audio?: boolean | undefined;
1428
+ } | undefined;
1429
+ }, {
1430
+ input?: {
1431
+ image?: boolean | undefined;
1432
+ audio?: boolean | undefined;
1433
+ video?: boolean | undefined;
1434
+ pdf?: boolean | undefined;
1435
+ file?: boolean | undefined;
1436
+ } | undefined;
1437
+ output?: {
1438
+ image?: boolean | undefined;
1439
+ audio?: boolean | undefined;
1440
+ } | undefined;
1441
+ }>;
1442
+ /**
1443
+ * Execution control and limits. Declare these so clients can set expectations
1444
+ * about how long or how many steps an agent run might take.
1445
+ */
1446
+ declare const ExecutionCapabilitiesSchema: z.ZodObject<{
1447
+ /** Set `true` if the agent can execute code (e.g., Python, JavaScript) during a run. */codeExecution: z.ZodOptional<z.ZodBoolean>;
1448
+ /** Set `true` if code execution happens in a sandboxed/isolated environment.
1449
+ * Only meaningful when `codeExecution` is `true`. */
1450
+ sandboxed: z.ZodOptional<z.ZodBoolean>;
1451
+ /** Maximum number of tool-call/reasoning iterations the agent will perform per run.
1452
+ * Helps clients display progress or set timeout expectations. */
1453
+ maxIterations: z.ZodOptional<z.ZodNumber>; /** Maximum wall-clock time (in milliseconds) the agent will run before timing out. */
1454
+ maxExecutionTime: z.ZodOptional<z.ZodNumber>;
1455
+ }, "strip", z.ZodTypeAny, {
1456
+ codeExecution?: boolean | undefined;
1457
+ sandboxed?: boolean | undefined;
1458
+ maxIterations?: number | undefined;
1459
+ maxExecutionTime?: number | undefined;
1460
+ }, {
1461
+ codeExecution?: boolean | undefined;
1462
+ sandboxed?: boolean | undefined;
1463
+ maxIterations?: number | undefined;
1464
+ maxExecutionTime?: number | undefined;
1465
+ }>;
1466
+ /**
1467
+ * Human-in-the-loop interaction support. Enable these when your agent can pause
1468
+ * execution to request human input, approval, or feedback before continuing.
1469
+ */
1470
+ declare const HumanInTheLoopCapabilitiesSchema: z.ZodObject<{
1471
+ /** Set `true` if the agent supports any form of human-in-the-loop interaction. */supported: z.ZodOptional<z.ZodBoolean>;
1472
+ /** Set `true` if the agent can pause and request explicit approval before
1473
+ * performing sensitive actions (e.g., sending emails, deleting data). */
1474
+ approvals: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent allows humans to intervene and modify its plan mid-execution. */
1475
+ interventions: z.ZodOptional<z.ZodBoolean>;
1476
+ /** Set `true` if the agent can incorporate user feedback (thumbs up/down, corrections)
1477
+ * to improve its behavior within the current session. */
1478
+ feedback: z.ZodOptional<z.ZodBoolean>;
1479
+ }, "strip", z.ZodTypeAny, {
1480
+ supported?: boolean | undefined;
1481
+ approvals?: boolean | undefined;
1482
+ interventions?: boolean | undefined;
1483
+ feedback?: boolean | undefined;
1484
+ }, {
1485
+ supported?: boolean | undefined;
1486
+ approvals?: boolean | undefined;
1487
+ interventions?: boolean | undefined;
1488
+ feedback?: boolean | undefined;
1489
+ }>;
1490
+ /**
1491
+ * A typed, categorized snapshot of an agent's current capabilities.
1492
+ * Returned by `getCapabilities()` on `AbstractAgent`.
1493
+ *
1494
+ * All fields are optional — agents only declare what they support.
1495
+ * Omitted fields mean the capability is not declared (unknown), not that
1496
+ * it's unsupported.
1497
+ *
1498
+ * The `custom` field is an escape hatch for integration-specific capabilities
1499
+ * that don't fit into the standard categories.
1500
+ */
1501
+ declare const AgentCapabilitiesSchema: z.ZodObject<{
1502
+ /** Agent identity and metadata. */identity: z.ZodOptional<z.ZodObject<{
1503
+ /** Human-readable name shown in UIs and agent selectors. */name: z.ZodOptional<z.ZodString>; /** The framework or platform powering this agent (e.g., "langgraph", "mastra", "crewai"). */
1504
+ type: z.ZodOptional<z.ZodString>; /** What this agent does — helps users and routing logic decide when to use it. */
1505
+ description: z.ZodOptional<z.ZodString>; /** Semantic version of the agent (e.g., "1.2.0"). Useful for compatibility checks. */
1506
+ version: z.ZodOptional<z.ZodString>; /** Organization or team that maintains this agent. */
1507
+ provider: z.ZodOptional<z.ZodString>; /** URL to the agent's documentation or homepage. */
1508
+ documentationUrl: z.ZodOptional<z.ZodString>; /** Arbitrary key-value pairs for integration-specific identity info. */
1509
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1510
+ }, "strip", z.ZodTypeAny, {
1511
+ type?: string | undefined;
1512
+ name?: string | undefined;
1513
+ description?: string | undefined;
1514
+ version?: string | undefined;
1515
+ provider?: string | undefined;
1516
+ documentationUrl?: string | undefined;
1517
+ metadata?: Record<string, unknown> | undefined;
1518
+ }, {
1519
+ type?: string | undefined;
1520
+ name?: string | undefined;
1521
+ description?: string | undefined;
1522
+ version?: string | undefined;
1523
+ provider?: string | undefined;
1524
+ documentationUrl?: string | undefined;
1525
+ metadata?: Record<string, unknown> | undefined;
1526
+ }>>; /** Supported transport mechanisms (SSE, WebSocket, binary, etc.). */
1527
+ transport: z.ZodOptional<z.ZodObject<{
1528
+ /** Set `true` if the agent streams responses via SSE. Most agents enable this. */streaming: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent accepts persistent WebSocket connections. */
1529
+ websocket: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent supports the AG-UI binary protocol (protobuf over HTTP). */
1530
+ httpBinary: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent can send async updates via webhooks after a run finishes. */
1531
+ pushNotifications: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent supports resuming interrupted streams via sequence numbers. */
1532
+ resumable: z.ZodOptional<z.ZodBoolean>;
1533
+ }, "strip", z.ZodTypeAny, {
1534
+ streaming?: boolean | undefined;
1535
+ websocket?: boolean | undefined;
1536
+ httpBinary?: boolean | undefined;
1537
+ pushNotifications?: boolean | undefined;
1538
+ resumable?: boolean | undefined;
1539
+ }, {
1540
+ streaming?: boolean | undefined;
1541
+ websocket?: boolean | undefined;
1542
+ httpBinary?: boolean | undefined;
1543
+ pushNotifications?: boolean | undefined;
1544
+ resumable?: boolean | undefined;
1545
+ }>>; /** Tools the agent provides and tool calling configuration. */
1546
+ tools: z.ZodOptional<z.ZodObject<{
1547
+ /** Set `true` if the agent can make tool calls at all. Set `false` to explicitly
1548
+ * signal tool calling is disabled even if items are present. */
1549
+ supported: z.ZodOptional<z.ZodBoolean>;
1550
+ /** The tools this agent provides on its own (full JSON Schema definitions).
1551
+ * These are distinct from client-provided tools passed in `RunAgentInput.tools`. */
1552
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
1553
+ name: z.ZodString;
1554
+ description: z.ZodString;
1555
+ parameters: z.ZodAny;
1556
+ }, "strip", z.ZodTypeAny, {
1557
+ name: string;
1558
+ description: string;
1559
+ parameters?: any;
1560
+ }, {
1561
+ name: string;
1562
+ description: string;
1563
+ parameters?: any;
1564
+ }>, "many">>; /** Set `true` if the agent can invoke multiple tools concurrently within a single step. */
1565
+ parallelCalls: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent accepts and uses tools provided by the client at runtime. */
1566
+ clientProvided: z.ZodOptional<z.ZodBoolean>;
1567
+ }, "strip", z.ZodTypeAny, {
1568
+ supported?: boolean | undefined;
1569
+ items?: {
1570
+ name: string;
1571
+ description: string;
1572
+ parameters?: any;
1573
+ }[] | undefined;
1574
+ parallelCalls?: boolean | undefined;
1575
+ clientProvided?: boolean | undefined;
1576
+ }, {
1577
+ supported?: boolean | undefined;
1578
+ items?: {
1579
+ name: string;
1580
+ description: string;
1581
+ parameters?: any;
1582
+ }[] | undefined;
1583
+ parallelCalls?: boolean | undefined;
1584
+ clientProvided?: boolean | undefined;
1585
+ }>>; /** Output format support (structured output, MIME types). */
1586
+ output: z.ZodOptional<z.ZodObject<{
1587
+ /** Set `true` if the agent can produce structured JSON output matching a provided schema. */structuredOutput: z.ZodOptional<z.ZodBoolean>;
1588
+ /** MIME types the agent can produce (e.g., `["text/plain", "application/json"]`).
1589
+ * Omit if the agent only produces plain text. */
1590
+ supportedMimeTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1591
+ }, "strip", z.ZodTypeAny, {
1592
+ structuredOutput?: boolean | undefined;
1593
+ supportedMimeTypes?: string[] | undefined;
1594
+ }, {
1595
+ structuredOutput?: boolean | undefined;
1596
+ supportedMimeTypes?: string[] | undefined;
1597
+ }>>; /** State and memory management (snapshots, deltas, persistence). */
1598
+ state: z.ZodOptional<z.ZodObject<{
1599
+ /** Set `true` if the agent emits `STATE_SNAPSHOT` events (full state replacement). */snapshots: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent emits `STATE_DELTA` events (JSON Patch incremental updates). */
1600
+ deltas: z.ZodOptional<z.ZodBoolean>;
1601
+ /** Set `true` if the agent has long-term memory beyond the current thread
1602
+ * (e.g., vector store, knowledge base, or cross-session recall). */
1603
+ memory: z.ZodOptional<z.ZodBoolean>;
1604
+ /** Set `true` if state is preserved across multiple runs within the same thread.
1605
+ * When `false`, state resets on each run. */
1606
+ persistentState: z.ZodOptional<z.ZodBoolean>;
1607
+ }, "strip", z.ZodTypeAny, {
1608
+ snapshots?: boolean | undefined;
1609
+ deltas?: boolean | undefined;
1610
+ memory?: boolean | undefined;
1611
+ persistentState?: boolean | undefined;
1612
+ }, {
1613
+ snapshots?: boolean | undefined;
1614
+ deltas?: boolean | undefined;
1615
+ memory?: boolean | undefined;
1616
+ persistentState?: boolean | undefined;
1617
+ }>>; /** Multi-agent coordination (delegation, handoffs, sub-agents). */
1618
+ multiAgent: z.ZodOptional<z.ZodObject<{
1619
+ /** Set `true` if the agent participates in any form of multi-agent coordination. */supported: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent can delegate subtasks to other agents while retaining control. */
1620
+ delegation: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent can transfer the conversation entirely to another agent. */
1621
+ handoffs: z.ZodOptional<z.ZodBoolean>; /** List of sub-agents this agent can invoke. Helps clients build agent selection UIs. */
1622
+ subAgents: z.ZodOptional<z.ZodArray<z.ZodObject<{
1623
+ /** Unique name or identifier of the sub-agent. */name: z.ZodString; /** What this sub-agent specializes in. Helps clients build agent selection UIs. */
1624
+ description: z.ZodOptional<z.ZodString>;
1625
+ }, "strip", z.ZodTypeAny, {
1626
+ name: string;
1627
+ description?: string | undefined;
1628
+ }, {
1629
+ name: string;
1630
+ description?: string | undefined;
1631
+ }>, "many">>;
1632
+ }, "strip", z.ZodTypeAny, {
1633
+ supported?: boolean | undefined;
1634
+ delegation?: boolean | undefined;
1635
+ handoffs?: boolean | undefined;
1636
+ subAgents?: {
1637
+ name: string;
1638
+ description?: string | undefined;
1639
+ }[] | undefined;
1640
+ }, {
1641
+ supported?: boolean | undefined;
1642
+ delegation?: boolean | undefined;
1643
+ handoffs?: boolean | undefined;
1644
+ subAgents?: {
1645
+ name: string;
1646
+ description?: string | undefined;
1647
+ }[] | undefined;
1648
+ }>>; /** Reasoning and thinking support (chain-of-thought, encrypted thinking). */
1649
+ reasoning: z.ZodOptional<z.ZodObject<{
1650
+ /** Set `true` if the agent produces reasoning/thinking tokens visible to the client. */supported: z.ZodOptional<z.ZodBoolean>; /** Set `true` if reasoning tokens are streamed incrementally (vs. returned all at once). */
1651
+ streaming: z.ZodOptional<z.ZodBoolean>;
1652
+ /** Set `true` if reasoning content is encrypted (zero-data-retention mode).
1653
+ * Clients should expect opaque `encryptedValue` fields instead of readable content. */
1654
+ encrypted: z.ZodOptional<z.ZodBoolean>;
1655
+ }, "strip", z.ZodTypeAny, {
1656
+ streaming?: boolean | undefined;
1657
+ supported?: boolean | undefined;
1658
+ encrypted?: boolean | undefined;
1659
+ }, {
1660
+ streaming?: boolean | undefined;
1661
+ supported?: boolean | undefined;
1662
+ encrypted?: boolean | undefined;
1663
+ }>>; /** Multimodal input/output support (images, audio, video, files). */
1664
+ multimodal: z.ZodOptional<z.ZodObject<{
1665
+ /** Modalities the agent can accept as input (images, audio, video, PDFs, files). */input: z.ZodOptional<z.ZodObject<{
1666
+ /** Set `true` if the agent can process image inputs (e.g., screenshots, photos). */image: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent can process audio inputs (speech, recordings). */
1667
+ audio: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent can process video inputs. */
1668
+ video: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent can process PDF documents. */
1669
+ pdf: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent can process arbitrary file uploads. */
1670
+ file: z.ZodOptional<z.ZodBoolean>;
1671
+ }, "strip", z.ZodTypeAny, {
1672
+ image?: boolean | undefined;
1673
+ audio?: boolean | undefined;
1674
+ video?: boolean | undefined;
1675
+ pdf?: boolean | undefined;
1676
+ file?: boolean | undefined;
1677
+ }, {
1678
+ image?: boolean | undefined;
1679
+ audio?: boolean | undefined;
1680
+ video?: boolean | undefined;
1681
+ pdf?: boolean | undefined;
1682
+ file?: boolean | undefined;
1683
+ }>>; /** Modalities the agent can produce as output (images, audio). */
1684
+ output: z.ZodOptional<z.ZodObject<{
1685
+ /** Set `true` if the agent can generate images as part of its response. */image: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent can produce audio output (text-to-speech, audio files). */
1686
+ audio: z.ZodOptional<z.ZodBoolean>;
1687
+ }, "strip", z.ZodTypeAny, {
1688
+ image?: boolean | undefined;
1689
+ audio?: boolean | undefined;
1690
+ }, {
1691
+ image?: boolean | undefined;
1692
+ audio?: boolean | undefined;
1693
+ }>>;
1694
+ }, "strip", z.ZodTypeAny, {
1695
+ input?: {
1696
+ image?: boolean | undefined;
1697
+ audio?: boolean | undefined;
1698
+ video?: boolean | undefined;
1699
+ pdf?: boolean | undefined;
1700
+ file?: boolean | undefined;
1701
+ } | undefined;
1702
+ output?: {
1703
+ image?: boolean | undefined;
1704
+ audio?: boolean | undefined;
1705
+ } | undefined;
1706
+ }, {
1707
+ input?: {
1708
+ image?: boolean | undefined;
1709
+ audio?: boolean | undefined;
1710
+ video?: boolean | undefined;
1711
+ pdf?: boolean | undefined;
1712
+ file?: boolean | undefined;
1713
+ } | undefined;
1714
+ output?: {
1715
+ image?: boolean | undefined;
1716
+ audio?: boolean | undefined;
1717
+ } | undefined;
1718
+ }>>; /** Execution control and limits (code execution, timeouts, iteration caps). */
1719
+ execution: z.ZodOptional<z.ZodObject<{
1720
+ /** Set `true` if the agent can execute code (e.g., Python, JavaScript) during a run. */codeExecution: z.ZodOptional<z.ZodBoolean>;
1721
+ /** Set `true` if code execution happens in a sandboxed/isolated environment.
1722
+ * Only meaningful when `codeExecution` is `true`. */
1723
+ sandboxed: z.ZodOptional<z.ZodBoolean>;
1724
+ /** Maximum number of tool-call/reasoning iterations the agent will perform per run.
1725
+ * Helps clients display progress or set timeout expectations. */
1726
+ maxIterations: z.ZodOptional<z.ZodNumber>; /** Maximum wall-clock time (in milliseconds) the agent will run before timing out. */
1727
+ maxExecutionTime: z.ZodOptional<z.ZodNumber>;
1728
+ }, "strip", z.ZodTypeAny, {
1729
+ codeExecution?: boolean | undefined;
1730
+ sandboxed?: boolean | undefined;
1731
+ maxIterations?: number | undefined;
1732
+ maxExecutionTime?: number | undefined;
1733
+ }, {
1734
+ codeExecution?: boolean | undefined;
1735
+ sandboxed?: boolean | undefined;
1736
+ maxIterations?: number | undefined;
1737
+ maxExecutionTime?: number | undefined;
1738
+ }>>; /** Human-in-the-loop support (approvals, interventions, feedback). */
1739
+ humanInTheLoop: z.ZodOptional<z.ZodObject<{
1740
+ /** Set `true` if the agent supports any form of human-in-the-loop interaction. */supported: z.ZodOptional<z.ZodBoolean>;
1741
+ /** Set `true` if the agent can pause and request explicit approval before
1742
+ * performing sensitive actions (e.g., sending emails, deleting data). */
1743
+ approvals: z.ZodOptional<z.ZodBoolean>; /** Set `true` if the agent allows humans to intervene and modify its plan mid-execution. */
1744
+ interventions: z.ZodOptional<z.ZodBoolean>;
1745
+ /** Set `true` if the agent can incorporate user feedback (thumbs up/down, corrections)
1746
+ * to improve its behavior within the current session. */
1747
+ feedback: z.ZodOptional<z.ZodBoolean>;
1748
+ }, "strip", z.ZodTypeAny, {
1749
+ supported?: boolean | undefined;
1750
+ approvals?: boolean | undefined;
1751
+ interventions?: boolean | undefined;
1752
+ feedback?: boolean | undefined;
1753
+ }, {
1754
+ supported?: boolean | undefined;
1755
+ approvals?: boolean | undefined;
1756
+ interventions?: boolean | undefined;
1757
+ feedback?: boolean | undefined;
1758
+ }>>; /** Integration-specific capabilities not covered by the standard categories. */
1759
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1760
+ }, "strip", z.ZodTypeAny, {
1761
+ custom?: Record<string, unknown> | undefined;
1762
+ reasoning?: {
1763
+ streaming?: boolean | undefined;
1764
+ supported?: boolean | undefined;
1765
+ encrypted?: boolean | undefined;
1766
+ } | undefined;
1767
+ state?: {
1768
+ snapshots?: boolean | undefined;
1769
+ deltas?: boolean | undefined;
1770
+ memory?: boolean | undefined;
1771
+ persistentState?: boolean | undefined;
1772
+ } | undefined;
1773
+ tools?: {
1774
+ supported?: boolean | undefined;
1775
+ items?: {
1776
+ name: string;
1777
+ description: string;
1778
+ parameters?: any;
1779
+ }[] | undefined;
1780
+ parallelCalls?: boolean | undefined;
1781
+ clientProvided?: boolean | undefined;
1782
+ } | undefined;
1783
+ output?: {
1784
+ structuredOutput?: boolean | undefined;
1785
+ supportedMimeTypes?: string[] | undefined;
1786
+ } | undefined;
1787
+ identity?: {
1788
+ type?: string | undefined;
1789
+ name?: string | undefined;
1790
+ description?: string | undefined;
1791
+ version?: string | undefined;
1792
+ provider?: string | undefined;
1793
+ documentationUrl?: string | undefined;
1794
+ metadata?: Record<string, unknown> | undefined;
1795
+ } | undefined;
1796
+ transport?: {
1797
+ streaming?: boolean | undefined;
1798
+ websocket?: boolean | undefined;
1799
+ httpBinary?: boolean | undefined;
1800
+ pushNotifications?: boolean | undefined;
1801
+ resumable?: boolean | undefined;
1802
+ } | undefined;
1803
+ multiAgent?: {
1804
+ supported?: boolean | undefined;
1805
+ delegation?: boolean | undefined;
1806
+ handoffs?: boolean | undefined;
1807
+ subAgents?: {
1808
+ name: string;
1809
+ description?: string | undefined;
1810
+ }[] | undefined;
1811
+ } | undefined;
1812
+ multimodal?: {
1813
+ input?: {
1814
+ image?: boolean | undefined;
1815
+ audio?: boolean | undefined;
1816
+ video?: boolean | undefined;
1817
+ pdf?: boolean | undefined;
1818
+ file?: boolean | undefined;
1819
+ } | undefined;
1820
+ output?: {
1821
+ image?: boolean | undefined;
1822
+ audio?: boolean | undefined;
1823
+ } | undefined;
1824
+ } | undefined;
1825
+ execution?: {
1826
+ codeExecution?: boolean | undefined;
1827
+ sandboxed?: boolean | undefined;
1828
+ maxIterations?: number | undefined;
1829
+ maxExecutionTime?: number | undefined;
1830
+ } | undefined;
1831
+ humanInTheLoop?: {
1832
+ supported?: boolean | undefined;
1833
+ approvals?: boolean | undefined;
1834
+ interventions?: boolean | undefined;
1835
+ feedback?: boolean | undefined;
1836
+ } | undefined;
1837
+ }, {
1838
+ custom?: Record<string, unknown> | undefined;
1839
+ reasoning?: {
1840
+ streaming?: boolean | undefined;
1841
+ supported?: boolean | undefined;
1842
+ encrypted?: boolean | undefined;
1843
+ } | undefined;
1844
+ state?: {
1845
+ snapshots?: boolean | undefined;
1846
+ deltas?: boolean | undefined;
1847
+ memory?: boolean | undefined;
1848
+ persistentState?: boolean | undefined;
1849
+ } | undefined;
1850
+ tools?: {
1851
+ supported?: boolean | undefined;
1852
+ items?: {
1853
+ name: string;
1854
+ description: string;
1855
+ parameters?: any;
1856
+ }[] | undefined;
1857
+ parallelCalls?: boolean | undefined;
1858
+ clientProvided?: boolean | undefined;
1859
+ } | undefined;
1860
+ output?: {
1861
+ structuredOutput?: boolean | undefined;
1862
+ supportedMimeTypes?: string[] | undefined;
1863
+ } | undefined;
1864
+ identity?: {
1865
+ type?: string | undefined;
1866
+ name?: string | undefined;
1867
+ description?: string | undefined;
1868
+ version?: string | undefined;
1869
+ provider?: string | undefined;
1870
+ documentationUrl?: string | undefined;
1871
+ metadata?: Record<string, unknown> | undefined;
1872
+ } | undefined;
1873
+ transport?: {
1874
+ streaming?: boolean | undefined;
1875
+ websocket?: boolean | undefined;
1876
+ httpBinary?: boolean | undefined;
1877
+ pushNotifications?: boolean | undefined;
1878
+ resumable?: boolean | undefined;
1879
+ } | undefined;
1880
+ multiAgent?: {
1881
+ supported?: boolean | undefined;
1882
+ delegation?: boolean | undefined;
1883
+ handoffs?: boolean | undefined;
1884
+ subAgents?: {
1885
+ name: string;
1886
+ description?: string | undefined;
1887
+ }[] | undefined;
1888
+ } | undefined;
1889
+ multimodal?: {
1890
+ input?: {
1891
+ image?: boolean | undefined;
1892
+ audio?: boolean | undefined;
1893
+ video?: boolean | undefined;
1894
+ pdf?: boolean | undefined;
1895
+ file?: boolean | undefined;
1896
+ } | undefined;
1897
+ output?: {
1898
+ image?: boolean | undefined;
1899
+ audio?: boolean | undefined;
1900
+ } | undefined;
1901
+ } | undefined;
1902
+ execution?: {
1903
+ codeExecution?: boolean | undefined;
1904
+ sandboxed?: boolean | undefined;
1905
+ maxIterations?: number | undefined;
1906
+ maxExecutionTime?: number | undefined;
1907
+ } | undefined;
1908
+ humanInTheLoop?: {
1909
+ supported?: boolean | undefined;
1910
+ approvals?: boolean | undefined;
1911
+ interventions?: boolean | undefined;
1912
+ feedback?: boolean | undefined;
1913
+ } | undefined;
1914
+ }>;
1915
+ /** Describes a sub-agent that can be invoked by a parent agent. */
1916
+ type SubAgentInfo = z.infer<typeof SubAgentInfoSchema>;
1917
+ /** Agent identity and metadata for discovery UIs, marketplaces, and debugging. */
1918
+ type IdentityCapabilities = z.infer<typeof IdentityCapabilitiesSchema>;
1919
+ /** Supported transport mechanisms (SSE, WebSocket, binary protocol, push notifications). */
1920
+ type TransportCapabilities = z.infer<typeof TransportCapabilitiesSchema>;
1921
+ /** Tool calling support and agent-provided tool definitions. */
1922
+ type ToolsCapabilities = z.infer<typeof ToolsCapabilitiesSchema>;
1923
+ /** Output format support (structured output, MIME types). */
1924
+ type OutputCapabilities = z.infer<typeof OutputCapabilitiesSchema>;
1925
+ /** State and memory management (snapshots, deltas, persistence, long-term memory). */
1926
+ type StateCapabilities = z.infer<typeof StateCapabilitiesSchema>;
1927
+ /** Multi-agent coordination (delegation, handoffs, sub-agent orchestration). */
1928
+ type MultiAgentCapabilities = z.infer<typeof MultiAgentCapabilitiesSchema>;
1929
+ /** Reasoning and thinking visibility (streaming, encrypted chain-of-thought). */
1930
+ type ReasoningCapabilities = z.infer<typeof ReasoningCapabilitiesSchema>;
1931
+ /** Modalities the agent can accept as input (images, audio, video, PDFs, files). */
1932
+ type MultimodalInputCapabilities = z.infer<typeof MultimodalInputCapabilitiesSchema>;
1933
+ /** Modalities the agent can produce as output (images, audio). */
1934
+ type MultimodalOutputCapabilities = z.infer<typeof MultimodalOutputCapabilitiesSchema>;
1935
+ /** Multimodal input/output support (images, audio, video, PDFs, file uploads). */
1936
+ type MultimodalCapabilities = z.infer<typeof MultimodalCapabilitiesSchema>;
1937
+ /** Execution control and limits (code execution, sandboxing, iteration caps, timeouts). */
1938
+ type ExecutionCapabilities = z.infer<typeof ExecutionCapabilitiesSchema>;
1939
+ /** Human-in-the-loop interaction support (approvals, interventions, feedback). */
1940
+ type HumanInTheLoopCapabilities = z.infer<typeof HumanInTheLoopCapabilitiesSchema>;
1941
+ /** A typed, categorized snapshot of an agent's current capabilities. Returned by `getCapabilities()`. */
1942
+ type AgentCapabilities = z.infer<typeof AgentCapabilitiesSchema>;
1943
+ //#endregion
1140
1944
  //#region src/events.d.ts
1141
1945
  declare enum EventType {
1142
1946
  TEXT_MESSAGE_START = "TEXT_MESSAGE_START",
@@ -1208,6 +2012,7 @@ declare const TextMessageStartEventSchema: z.ZodObject<{
1208
2012
  type: z.ZodLiteral<EventType.TEXT_MESSAGE_START>;
1209
2013
  messageId: z.ZodString;
1210
2014
  role: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
2015
+ name: z.ZodOptional<z.ZodString>;
1211
2016
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1212
2017
  timestamp: z.ZodOptional<z.ZodNumber>;
1213
2018
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -1215,6 +2020,7 @@ declare const TextMessageStartEventSchema: z.ZodObject<{
1215
2020
  type: z.ZodLiteral<EventType.TEXT_MESSAGE_START>;
1216
2021
  messageId: z.ZodString;
1217
2022
  role: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
2023
+ name: z.ZodOptional<z.ZodString>;
1218
2024
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1219
2025
  timestamp: z.ZodOptional<z.ZodNumber>;
1220
2026
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -1222,6 +2028,7 @@ declare const TextMessageStartEventSchema: z.ZodObject<{
1222
2028
  type: z.ZodLiteral<EventType.TEXT_MESSAGE_START>;
1223
2029
  messageId: z.ZodString;
1224
2030
  role: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
2031
+ name: z.ZodOptional<z.ZodString>;
1225
2032
  }, z.ZodTypeAny, "passthrough">>;
1226
2033
  declare const TextMessageContentEventSchema: z.ZodObject<{
1227
2034
  timestamp: z.ZodOptional<z.ZodNumber>;
@@ -1272,6 +2079,7 @@ declare const TextMessageChunkEventSchema: z.ZodObject<{
1272
2079
  messageId: z.ZodOptional<z.ZodString>;
1273
2080
  role: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
1274
2081
  delta: z.ZodOptional<z.ZodString>;
2082
+ name: z.ZodOptional<z.ZodString>;
1275
2083
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1276
2084
  timestamp: z.ZodOptional<z.ZodNumber>;
1277
2085
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -1280,6 +2088,7 @@ declare const TextMessageChunkEventSchema: z.ZodObject<{
1280
2088
  messageId: z.ZodOptional<z.ZodString>;
1281
2089
  role: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
1282
2090
  delta: z.ZodOptional<z.ZodString>;
2091
+ name: z.ZodOptional<z.ZodString>;
1283
2092
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1284
2093
  timestamp: z.ZodOptional<z.ZodNumber>;
1285
2094
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -1288,6 +2097,7 @@ declare const TextMessageChunkEventSchema: z.ZodObject<{
1288
2097
  messageId: z.ZodOptional<z.ZodString>;
1289
2098
  role: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
1290
2099
  delta: z.ZodOptional<z.ZodString>;
2100
+ name: z.ZodOptional<z.ZodString>;
1291
2101
  }, z.ZodTypeAny, "passthrough">>;
1292
2102
  /**
1293
2103
  * @deprecated Use ReasoningMessageStartEventSchema instead. Will be removed in 1.0.0.
@@ -1643,8 +2453,8 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
1643
2453
  }, "strip", z.ZodTypeAny, {
1644
2454
  role: "assistant";
1645
2455
  id: string;
1646
- content?: string | undefined;
1647
2456
  name?: string | undefined;
2457
+ content?: string | undefined;
1648
2458
  encryptedValue?: string | undefined;
1649
2459
  toolCalls?: {
1650
2460
  function: {
@@ -1658,8 +2468,8 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
1658
2468
  }, {
1659
2469
  role: "assistant";
1660
2470
  id: string;
1661
- content?: string | undefined;
1662
2471
  name?: string | undefined;
2472
+ content?: string | undefined;
1663
2473
  encryptedValue?: string | undefined;
1664
2474
  toolCalls?: {
1665
2475
  function: {
@@ -1895,8 +2705,8 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
1895
2705
  }, "strip", z.ZodTypeAny, {
1896
2706
  role: "assistant";
1897
2707
  id: string;
1898
- content?: string | undefined;
1899
2708
  name?: string | undefined;
2709
+ content?: string | undefined;
1900
2710
  encryptedValue?: string | undefined;
1901
2711
  toolCalls?: {
1902
2712
  function: {
@@ -1910,8 +2720,8 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
1910
2720
  }, {
1911
2721
  role: "assistant";
1912
2722
  id: string;
1913
- content?: string | undefined;
1914
2723
  name?: string | undefined;
2724
+ content?: string | undefined;
1915
2725
  encryptedValue?: string | undefined;
1916
2726
  toolCalls?: {
1917
2727
  function: {
@@ -2147,8 +2957,8 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
2147
2957
  }, "strip", z.ZodTypeAny, {
2148
2958
  role: "assistant";
2149
2959
  id: string;
2150
- content?: string | undefined;
2151
2960
  name?: string | undefined;
2961
+ content?: string | undefined;
2152
2962
  encryptedValue?: string | undefined;
2153
2963
  toolCalls?: {
2154
2964
  function: {
@@ -2162,8 +2972,8 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
2162
2972
  }, {
2163
2973
  role: "assistant";
2164
2974
  id: string;
2165
- content?: string | undefined;
2166
2975
  name?: string | undefined;
2976
+ content?: string | undefined;
2167
2977
  encryptedValue?: string | undefined;
2168
2978
  toolCalls?: {
2169
2979
  function: {
@@ -2505,8 +3315,8 @@ declare const RunStartedEventSchema: z.ZodObject<{
2505
3315
  }, "strip", z.ZodTypeAny, {
2506
3316
  role: "assistant";
2507
3317
  id: string;
2508
- content?: string | undefined;
2509
3318
  name?: string | undefined;
3319
+ content?: string | undefined;
2510
3320
  encryptedValue?: string | undefined;
2511
3321
  toolCalls?: {
2512
3322
  function: {
@@ -2520,8 +3330,8 @@ declare const RunStartedEventSchema: z.ZodObject<{
2520
3330
  }, {
2521
3331
  role: "assistant";
2522
3332
  id: string;
2523
- content?: string | undefined;
2524
3333
  name?: string | undefined;
3334
+ content?: string | undefined;
2525
3335
  encryptedValue?: string | undefined;
2526
3336
  toolCalls?: {
2527
3337
  function: {
@@ -2713,8 +3523,8 @@ declare const RunStartedEventSchema: z.ZodObject<{
2713
3523
  } | {
2714
3524
  role: "assistant";
2715
3525
  id: string;
2716
- content?: string | undefined;
2717
3526
  name?: string | undefined;
3527
+ content?: string | undefined;
2718
3528
  encryptedValue?: string | undefined;
2719
3529
  toolCalls?: {
2720
3530
  function: {
@@ -2789,8 +3599,8 @@ declare const RunStartedEventSchema: z.ZodObject<{
2789
3599
  } | {
2790
3600
  role: "assistant";
2791
3601
  id: string;
2792
- content?: string | undefined;
2793
3602
  name?: string | undefined;
3603
+ content?: string | undefined;
2794
3604
  encryptedValue?: string | undefined;
2795
3605
  toolCalls?: {
2796
3606
  function: {
@@ -2942,8 +3752,8 @@ declare const RunStartedEventSchema: z.ZodObject<{
2942
3752
  }, "strip", z.ZodTypeAny, {
2943
3753
  role: "assistant";
2944
3754
  id: string;
2945
- content?: string | undefined;
2946
3755
  name?: string | undefined;
3756
+ content?: string | undefined;
2947
3757
  encryptedValue?: string | undefined;
2948
3758
  toolCalls?: {
2949
3759
  function: {
@@ -2957,8 +3767,8 @@ declare const RunStartedEventSchema: z.ZodObject<{
2957
3767
  }, {
2958
3768
  role: "assistant";
2959
3769
  id: string;
2960
- content?: string | undefined;
2961
3770
  name?: string | undefined;
3771
+ content?: string | undefined;
2962
3772
  encryptedValue?: string | undefined;
2963
3773
  toolCalls?: {
2964
3774
  function: {
@@ -3150,8 +3960,8 @@ declare const RunStartedEventSchema: z.ZodObject<{
3150
3960
  } | {
3151
3961
  role: "assistant";
3152
3962
  id: string;
3153
- content?: string | undefined;
3154
3963
  name?: string | undefined;
3964
+ content?: string | undefined;
3155
3965
  encryptedValue?: string | undefined;
3156
3966
  toolCalls?: {
3157
3967
  function: {
@@ -3226,8 +4036,8 @@ declare const RunStartedEventSchema: z.ZodObject<{
3226
4036
  } | {
3227
4037
  role: "assistant";
3228
4038
  id: string;
3229
- content?: string | undefined;
3230
4039
  name?: string | undefined;
4040
+ content?: string | undefined;
3231
4041
  encryptedValue?: string | undefined;
3232
4042
  toolCalls?: {
3233
4043
  function: {
@@ -3379,8 +4189,8 @@ declare const RunStartedEventSchema: z.ZodObject<{
3379
4189
  }, "strip", z.ZodTypeAny, {
3380
4190
  role: "assistant";
3381
4191
  id: string;
3382
- content?: string | undefined;
3383
4192
  name?: string | undefined;
4193
+ content?: string | undefined;
3384
4194
  encryptedValue?: string | undefined;
3385
4195
  toolCalls?: {
3386
4196
  function: {
@@ -3394,8 +4204,8 @@ declare const RunStartedEventSchema: z.ZodObject<{
3394
4204
  }, {
3395
4205
  role: "assistant";
3396
4206
  id: string;
3397
- content?: string | undefined;
3398
4207
  name?: string | undefined;
4208
+ content?: string | undefined;
3399
4209
  encryptedValue?: string | undefined;
3400
4210
  toolCalls?: {
3401
4211
  function: {
@@ -3587,8 +4397,8 @@ declare const RunStartedEventSchema: z.ZodObject<{
3587
4397
  } | {
3588
4398
  role: "assistant";
3589
4399
  id: string;
3590
- content?: string | undefined;
3591
4400
  name?: string | undefined;
4401
+ content?: string | undefined;
3592
4402
  encryptedValue?: string | undefined;
3593
4403
  toolCalls?: {
3594
4404
  function: {
@@ -3663,8 +4473,8 @@ declare const RunStartedEventSchema: z.ZodObject<{
3663
4473
  } | {
3664
4474
  role: "assistant";
3665
4475
  id: string;
3666
- content?: string | undefined;
3667
4476
  name?: string | undefined;
4477
+ content?: string | undefined;
3668
4478
  encryptedValue?: string | undefined;
3669
4479
  toolCalls?: {
3670
4480
  function: {
@@ -3966,6 +4776,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3966
4776
  type: z.ZodLiteral<EventType.TEXT_MESSAGE_START>;
3967
4777
  messageId: z.ZodString;
3968
4778
  role: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
4779
+ name: z.ZodOptional<z.ZodString>;
3969
4780
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3970
4781
  timestamp: z.ZodOptional<z.ZodNumber>;
3971
4782
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -3973,6 +4784,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3973
4784
  type: z.ZodLiteral<EventType.TEXT_MESSAGE_START>;
3974
4785
  messageId: z.ZodString;
3975
4786
  role: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
4787
+ name: z.ZodOptional<z.ZodString>;
3976
4788
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3977
4789
  timestamp: z.ZodOptional<z.ZodNumber>;
3978
4790
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -3980,6 +4792,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3980
4792
  type: z.ZodLiteral<EventType.TEXT_MESSAGE_START>;
3981
4793
  messageId: z.ZodString;
3982
4794
  role: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
4795
+ name: z.ZodOptional<z.ZodString>;
3983
4796
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
3984
4797
  timestamp: z.ZodOptional<z.ZodNumber>;
3985
4798
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -4027,6 +4840,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4027
4840
  messageId: z.ZodOptional<z.ZodString>;
4028
4841
  role: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
4029
4842
  delta: z.ZodOptional<z.ZodString>;
4843
+ name: z.ZodOptional<z.ZodString>;
4030
4844
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4031
4845
  timestamp: z.ZodOptional<z.ZodNumber>;
4032
4846
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -4035,6 +4849,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4035
4849
  messageId: z.ZodOptional<z.ZodString>;
4036
4850
  role: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
4037
4851
  delta: z.ZodOptional<z.ZodString>;
4852
+ name: z.ZodOptional<z.ZodString>;
4038
4853
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4039
4854
  timestamp: z.ZodOptional<z.ZodNumber>;
4040
4855
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -4043,6 +4858,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4043
4858
  messageId: z.ZodOptional<z.ZodString>;
4044
4859
  role: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
4045
4860
  delta: z.ZodOptional<z.ZodString>;
4861
+ name: z.ZodOptional<z.ZodString>;
4046
4862
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
4047
4863
  timestamp: z.ZodOptional<z.ZodNumber>;
4048
4864
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -4370,8 +5186,8 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4370
5186
  }, "strip", z.ZodTypeAny, {
4371
5187
  role: "assistant";
4372
5188
  id: string;
4373
- content?: string | undefined;
4374
5189
  name?: string | undefined;
5190
+ content?: string | undefined;
4375
5191
  encryptedValue?: string | undefined;
4376
5192
  toolCalls?: {
4377
5193
  function: {
@@ -4385,8 +5201,8 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4385
5201
  }, {
4386
5202
  role: "assistant";
4387
5203
  id: string;
4388
- content?: string | undefined;
4389
5204
  name?: string | undefined;
5205
+ content?: string | undefined;
4390
5206
  encryptedValue?: string | undefined;
4391
5207
  toolCalls?: {
4392
5208
  function: {
@@ -4622,8 +5438,8 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4622
5438
  }, "strip", z.ZodTypeAny, {
4623
5439
  role: "assistant";
4624
5440
  id: string;
4625
- content?: string | undefined;
4626
5441
  name?: string | undefined;
5442
+ content?: string | undefined;
4627
5443
  encryptedValue?: string | undefined;
4628
5444
  toolCalls?: {
4629
5445
  function: {
@@ -4637,8 +5453,8 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4637
5453
  }, {
4638
5454
  role: "assistant";
4639
5455
  id: string;
4640
- content?: string | undefined;
4641
5456
  name?: string | undefined;
5457
+ content?: string | undefined;
4642
5458
  encryptedValue?: string | undefined;
4643
5459
  toolCalls?: {
4644
5460
  function: {
@@ -4874,8 +5690,8 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4874
5690
  }, "strip", z.ZodTypeAny, {
4875
5691
  role: "assistant";
4876
5692
  id: string;
4877
- content?: string | undefined;
4878
5693
  name?: string | undefined;
5694
+ content?: string | undefined;
4879
5695
  encryptedValue?: string | undefined;
4880
5696
  toolCalls?: {
4881
5697
  function: {
@@ -4889,8 +5705,8 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4889
5705
  }, {
4890
5706
  role: "assistant";
4891
5707
  id: string;
4892
- content?: string | undefined;
4893
5708
  name?: string | undefined;
5709
+ content?: string | undefined;
4894
5710
  encryptedValue?: string | undefined;
4895
5711
  toolCalls?: {
4896
5712
  function: {
@@ -5227,8 +6043,8 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5227
6043
  }, "strip", z.ZodTypeAny, {
5228
6044
  role: "assistant";
5229
6045
  id: string;
5230
- content?: string | undefined;
5231
6046
  name?: string | undefined;
6047
+ content?: string | undefined;
5232
6048
  encryptedValue?: string | undefined;
5233
6049
  toolCalls?: {
5234
6050
  function: {
@@ -5242,8 +6058,8 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5242
6058
  }, {
5243
6059
  role: "assistant";
5244
6060
  id: string;
5245
- content?: string | undefined;
5246
6061
  name?: string | undefined;
6062
+ content?: string | undefined;
5247
6063
  encryptedValue?: string | undefined;
5248
6064
  toolCalls?: {
5249
6065
  function: {
@@ -5435,8 +6251,8 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5435
6251
  } | {
5436
6252
  role: "assistant";
5437
6253
  id: string;
5438
- content?: string | undefined;
5439
6254
  name?: string | undefined;
6255
+ content?: string | undefined;
5440
6256
  encryptedValue?: string | undefined;
5441
6257
  toolCalls?: {
5442
6258
  function: {
@@ -5511,8 +6327,8 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5511
6327
  } | {
5512
6328
  role: "assistant";
5513
6329
  id: string;
5514
- content?: string | undefined;
5515
6330
  name?: string | undefined;
6331
+ content?: string | undefined;
5516
6332
  encryptedValue?: string | undefined;
5517
6333
  toolCalls?: {
5518
6334
  function: {
@@ -5664,8 +6480,8 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5664
6480
  }, "strip", z.ZodTypeAny, {
5665
6481
  role: "assistant";
5666
6482
  id: string;
5667
- content?: string | undefined;
5668
6483
  name?: string | undefined;
6484
+ content?: string | undefined;
5669
6485
  encryptedValue?: string | undefined;
5670
6486
  toolCalls?: {
5671
6487
  function: {
@@ -5679,8 +6495,8 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5679
6495
  }, {
5680
6496
  role: "assistant";
5681
6497
  id: string;
5682
- content?: string | undefined;
5683
6498
  name?: string | undefined;
6499
+ content?: string | undefined;
5684
6500
  encryptedValue?: string | undefined;
5685
6501
  toolCalls?: {
5686
6502
  function: {
@@ -5872,8 +6688,8 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5872
6688
  } | {
5873
6689
  role: "assistant";
5874
6690
  id: string;
5875
- content?: string | undefined;
5876
6691
  name?: string | undefined;
6692
+ content?: string | undefined;
5877
6693
  encryptedValue?: string | undefined;
5878
6694
  toolCalls?: {
5879
6695
  function: {
@@ -5948,8 +6764,8 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5948
6764
  } | {
5949
6765
  role: "assistant";
5950
6766
  id: string;
5951
- content?: string | undefined;
5952
6767
  name?: string | undefined;
6768
+ content?: string | undefined;
5953
6769
  encryptedValue?: string | undefined;
5954
6770
  toolCalls?: {
5955
6771
  function: {
@@ -6101,8 +6917,8 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6101
6917
  }, "strip", z.ZodTypeAny, {
6102
6918
  role: "assistant";
6103
6919
  id: string;
6104
- content?: string | undefined;
6105
6920
  name?: string | undefined;
6921
+ content?: string | undefined;
6106
6922
  encryptedValue?: string | undefined;
6107
6923
  toolCalls?: {
6108
6924
  function: {
@@ -6116,8 +6932,8 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6116
6932
  }, {
6117
6933
  role: "assistant";
6118
6934
  id: string;
6119
- content?: string | undefined;
6120
6935
  name?: string | undefined;
6936
+ content?: string | undefined;
6121
6937
  encryptedValue?: string | undefined;
6122
6938
  toolCalls?: {
6123
6939
  function: {
@@ -6309,8 +7125,8 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6309
7125
  } | {
6310
7126
  role: "assistant";
6311
7127
  id: string;
6312
- content?: string | undefined;
6313
7128
  name?: string | undefined;
7129
+ content?: string | undefined;
6314
7130
  encryptedValue?: string | undefined;
6315
7131
  toolCalls?: {
6316
7132
  function: {
@@ -6385,8 +7201,8 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6385
7201
  } | {
6386
7202
  role: "assistant";
6387
7203
  id: string;
6388
- content?: string | undefined;
6389
7204
  name?: string | undefined;
7205
+ content?: string | undefined;
6390
7206
  encryptedValue?: string | undefined;
6391
7207
  toolCalls?: {
6392
7208
  function: {
@@ -6779,5 +7595,5 @@ type ReasoningEndEvent = z.infer<typeof ReasoningEndEventSchema>;
6779
7595
  type ReasoningEncryptedValueEvent = z.infer<typeof ReasoningEncryptedValueEventSchema>;
6780
7596
  type ReasoningEncryptedValueSubtype = z.infer<typeof ReasoningEncryptedValueSubtypeSchema>;
6781
7597
  //#endregion
6782
- export { AGUIConnectNotImplementedError, AGUIError, AGUIEvent, AGUIEventByType, AGUIEventOf, ActivityDeltaEvent, ActivityDeltaEventProps, ActivityDeltaEventSchema, ActivityMessage, ActivityMessageSchema, ActivitySnapshotEvent, ActivitySnapshotEventProps, ActivitySnapshotEventSchema, AssistantMessage, AssistantMessageSchema, BaseEvent, BaseEventFields, BaseEventProps, BaseEventSchema, BaseMessageSchema, BinaryInputContent, BinaryInputContentSchema, Context, ContextSchema, CustomEvent, CustomEventProps, CustomEventSchema, DeveloperMessage, DeveloperMessageSchema, EventPayloadOf, EventSchemas, EventType, FunctionCall, FunctionCallSchema, InputContent, InputContentSchema, Message, MessageSchema, MessagesSnapshotEvent, MessagesSnapshotEventProps, MessagesSnapshotEventSchema, RawEvent, RawEventProps, RawEventSchema, ReasoningEncryptedValueEvent, ReasoningEncryptedValueEventProps, ReasoningEncryptedValueEventSchema, ReasoningEncryptedValueSubtype, ReasoningEncryptedValueSubtypeSchema, ReasoningEndEvent, ReasoningEndEventProps, ReasoningEndEventSchema, ReasoningMessage, ReasoningMessageChunkEvent, ReasoningMessageChunkEventProps, ReasoningMessageChunkEventSchema, ReasoningMessageContentEvent, ReasoningMessageContentEventProps, ReasoningMessageContentEventSchema, ReasoningMessageEndEvent, ReasoningMessageEndEventProps, ReasoningMessageEndEventSchema, ReasoningMessageSchema, ReasoningMessageStartEvent, ReasoningMessageStartEventProps, ReasoningMessageStartEventSchema, ReasoningStartEvent, ReasoningStartEventProps, ReasoningStartEventSchema, Role, RoleSchema, RunAgentInput, RunAgentInputSchema, RunErrorEvent, RunErrorEventProps, RunErrorEventSchema, RunFinishedEvent, RunFinishedEventProps, RunFinishedEventSchema, RunStartedEvent, RunStartedEventProps, RunStartedEventSchema, State, StateDeltaEvent, StateDeltaEventProps, StateDeltaEventSchema, StateSchema, StateSnapshotEvent, StateSnapshotEventProps, StateSnapshotEventSchema, StepFinishedEvent, StepFinishedEventProps, StepFinishedEventSchema, StepStartedEvent, StepStartedEventProps, StepStartedEventSchema, SystemMessage, SystemMessageSchema, TextInputContent, TextInputContentSchema, TextMessageChunkEvent, TextMessageChunkEventProps, TextMessageChunkEventSchema, TextMessageContentEvent, TextMessageContentEventProps, TextMessageContentEventSchema, TextMessageEndEvent, TextMessageEndEventProps, TextMessageEndEventSchema, TextMessageStartEvent, TextMessageStartEventProps, TextMessageStartEventSchema, ThinkingEndEvent, ThinkingEndEventProps, ThinkingEndEventSchema, ThinkingStartEvent, ThinkingStartEventProps, ThinkingStartEventSchema, ThinkingTextMessageContentEvent, ThinkingTextMessageContentEventProps, ThinkingTextMessageContentEventSchema, ThinkingTextMessageEndEvent, ThinkingTextMessageEndEventProps, ThinkingTextMessageEndEventSchema, ThinkingTextMessageStartEvent, ThinkingTextMessageStartEventProps, ThinkingTextMessageStartEventSchema, Tool, ToolCall, ToolCallArgsEvent, ToolCallArgsEventProps, ToolCallArgsEventSchema, ToolCallChunkEvent, ToolCallChunkEventProps, ToolCallChunkEventSchema, ToolCallEndEvent, ToolCallEndEventProps, ToolCallEndEventSchema, ToolCallResultEvent, ToolCallResultEventProps, ToolCallResultEventSchema, ToolCallSchema, ToolCallStartEvent, ToolCallStartEventProps, ToolCallStartEventSchema, ToolMessage, ToolMessageSchema, ToolSchema, UserMessage, UserMessageSchema };
7598
+ export { AGUIConnectNotImplementedError, AGUIError, AGUIEvent, AGUIEventByType, AGUIEventOf, ActivityDeltaEvent, ActivityDeltaEventProps, ActivityDeltaEventSchema, ActivityMessage, ActivityMessageSchema, ActivitySnapshotEvent, ActivitySnapshotEventProps, ActivitySnapshotEventSchema, type AgentCapabilities, AgentCapabilitiesSchema, AssistantMessage, AssistantMessageSchema, BaseEvent, BaseEventFields, BaseEventProps, BaseEventSchema, BaseMessageSchema, BinaryInputContent, BinaryInputContentSchema, Context, ContextSchema, CustomEvent, CustomEventProps, CustomEventSchema, DeveloperMessage, DeveloperMessageSchema, EventPayloadOf, EventSchemas, EventType, type ExecutionCapabilities, ExecutionCapabilitiesSchema, FunctionCall, FunctionCallSchema, type HumanInTheLoopCapabilities, HumanInTheLoopCapabilitiesSchema, type IdentityCapabilities, IdentityCapabilitiesSchema, InputContent, InputContentSchema, Message, MessageSchema, MessagesSnapshotEvent, MessagesSnapshotEventProps, MessagesSnapshotEventSchema, type MultiAgentCapabilities, MultiAgentCapabilitiesSchema, type MultimodalCapabilities, MultimodalCapabilitiesSchema, type MultimodalInputCapabilities, MultimodalInputCapabilitiesSchema, type MultimodalOutputCapabilities, MultimodalOutputCapabilitiesSchema, type OutputCapabilities, OutputCapabilitiesSchema, RawEvent, RawEventProps, RawEventSchema, type ReasoningCapabilities, ReasoningCapabilitiesSchema, ReasoningEncryptedValueEvent, ReasoningEncryptedValueEventProps, ReasoningEncryptedValueEventSchema, ReasoningEncryptedValueSubtype, ReasoningEncryptedValueSubtypeSchema, ReasoningEndEvent, ReasoningEndEventProps, ReasoningEndEventSchema, ReasoningMessage, ReasoningMessageChunkEvent, ReasoningMessageChunkEventProps, ReasoningMessageChunkEventSchema, ReasoningMessageContentEvent, ReasoningMessageContentEventProps, ReasoningMessageContentEventSchema, ReasoningMessageEndEvent, ReasoningMessageEndEventProps, ReasoningMessageEndEventSchema, ReasoningMessageSchema, ReasoningMessageStartEvent, ReasoningMessageStartEventProps, ReasoningMessageStartEventSchema, ReasoningStartEvent, ReasoningStartEventProps, ReasoningStartEventSchema, Role, RoleSchema, RunAgentInput, RunAgentInputSchema, RunErrorEvent, RunErrorEventProps, RunErrorEventSchema, RunFinishedEvent, RunFinishedEventProps, RunFinishedEventSchema, RunStartedEvent, RunStartedEventProps, RunStartedEventSchema, State, type StateCapabilities, StateCapabilitiesSchema, StateDeltaEvent, StateDeltaEventProps, StateDeltaEventSchema, StateSchema, StateSnapshotEvent, StateSnapshotEventProps, StateSnapshotEventSchema, StepFinishedEvent, StepFinishedEventProps, StepFinishedEventSchema, StepStartedEvent, StepStartedEventProps, StepStartedEventSchema, type SubAgentInfo, SubAgentInfoSchema, SystemMessage, SystemMessageSchema, TextInputContent, TextInputContentSchema, TextMessageChunkEvent, TextMessageChunkEventProps, TextMessageChunkEventSchema, TextMessageContentEvent, TextMessageContentEventProps, TextMessageContentEventSchema, TextMessageEndEvent, TextMessageEndEventProps, TextMessageEndEventSchema, TextMessageStartEvent, TextMessageStartEventProps, TextMessageStartEventSchema, ThinkingEndEvent, ThinkingEndEventProps, ThinkingEndEventSchema, ThinkingStartEvent, ThinkingStartEventProps, ThinkingStartEventSchema, ThinkingTextMessageContentEvent, ThinkingTextMessageContentEventProps, ThinkingTextMessageContentEventSchema, ThinkingTextMessageEndEvent, ThinkingTextMessageEndEventProps, ThinkingTextMessageEndEventSchema, ThinkingTextMessageStartEvent, ThinkingTextMessageStartEventProps, ThinkingTextMessageStartEventSchema, Tool, ToolCall, ToolCallArgsEvent, ToolCallArgsEventProps, ToolCallArgsEventSchema, ToolCallChunkEvent, ToolCallChunkEventProps, ToolCallChunkEventSchema, ToolCallEndEvent, ToolCallEndEventProps, ToolCallEndEventSchema, ToolCallResultEvent, ToolCallResultEventProps, ToolCallResultEventSchema, ToolCallSchema, ToolCallStartEvent, ToolCallStartEventProps, ToolCallStartEventSchema, ToolMessage, ToolMessageSchema, ToolSchema, type ToolsCapabilities, ToolsCapabilitiesSchema, type TransportCapabilities, TransportCapabilitiesSchema, UserMessage, UserMessageSchema };
6783
7599
  //# sourceMappingURL=index.d.ts.map