@mastra/client-js 1.18.0-alpha.12 → 1.18.0-alpha.13

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.
@@ -2930,6 +2930,2148 @@ export interface PostAgentsAgentIdObserve_RouteContract {
2930
2930
  response: PostAgentsAgentIdObserve_Response;
2931
2931
  responseType: 'stream';
2932
2932
  }
2933
+ export type PostAgentsAgentIdSignals_PathParams = {
2934
+ /** Unique identifier for the agent */
2935
+ agentId: string;
2936
+ };
2937
+ type PostAgentsAgentIdSignals_Body_Auxiliary_2 = string | number | boolean | null | PostAgentsAgentIdSignals_Body_Auxiliary_2[] | {
2938
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
2939
+ };
2940
+ export type PostAgentsAgentIdSignals_Body = {
2941
+ signal: {
2942
+ id?: string | undefined;
2943
+ createdAt?: (string | Date) | undefined;
2944
+ metadata?: {
2945
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
2946
+ } | undefined;
2947
+ attributes?: {
2948
+ [key: string]: string | number | boolean | null | undefined;
2949
+ } | undefined;
2950
+ type: 'user-message';
2951
+ contents: string | string[] | ({
2952
+ id?: string | undefined;
2953
+ name?: string | undefined;
2954
+ metadata?: {
2955
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
2956
+ } | undefined;
2957
+ providerMetadata?: {
2958
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
2959
+ } | undefined;
2960
+ providerOptions?: {
2961
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
2962
+ } | undefined;
2963
+ experimental_providerMetadata?: {
2964
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
2965
+ } | undefined;
2966
+ role: 'system' | 'user' | 'assistant' | 'tool';
2967
+ content: string | ({
2968
+ id?: string | undefined;
2969
+ name?: string | undefined;
2970
+ metadata?: {
2971
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
2972
+ } | undefined;
2973
+ providerMetadata?: {
2974
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
2975
+ } | undefined;
2976
+ providerOptions?: {
2977
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
2978
+ } | undefined;
2979
+ experimental_providerMetadata?: {
2980
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
2981
+ } | undefined;
2982
+ type: 'text';
2983
+ text: string;
2984
+ } | {
2985
+ id?: string | undefined;
2986
+ name?: string | undefined;
2987
+ metadata?: {
2988
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
2989
+ } | undefined;
2990
+ providerMetadata?: {
2991
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
2992
+ } | undefined;
2993
+ providerOptions?: {
2994
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
2995
+ } | undefined;
2996
+ experimental_providerMetadata?: {
2997
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
2998
+ } | undefined;
2999
+ type: 'image';
3000
+ image: string | {
3001
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3002
+ };
3003
+ mediaType?: string | undefined;
3004
+ mimeType?: string | undefined;
3005
+ } | {
3006
+ id?: string | undefined;
3007
+ name?: string | undefined;
3008
+ metadata?: {
3009
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3010
+ } | undefined;
3011
+ providerMetadata?: {
3012
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3013
+ } | undefined;
3014
+ providerOptions?: {
3015
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3016
+ } | undefined;
3017
+ experimental_providerMetadata?: {
3018
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3019
+ } | undefined;
3020
+ type: 'file';
3021
+ data?: (string | {
3022
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3023
+ }) | undefined;
3024
+ file?: (string | {
3025
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3026
+ }) | undefined;
3027
+ url?: string | undefined;
3028
+ mediaType?: string | undefined;
3029
+ mimeType?: string | undefined;
3030
+ filename?: string | undefined;
3031
+ } | {
3032
+ id?: string | undefined;
3033
+ name?: string | undefined;
3034
+ metadata?: {
3035
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3036
+ } | undefined;
3037
+ providerMetadata?: {
3038
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3039
+ } | undefined;
3040
+ providerOptions?: {
3041
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3042
+ } | undefined;
3043
+ experimental_providerMetadata?: {
3044
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3045
+ } | undefined;
3046
+ type: 'tool-call';
3047
+ toolCallId: string;
3048
+ toolName: string;
3049
+ args?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3050
+ input?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3051
+ } | {
3052
+ id?: string | undefined;
3053
+ name?: string | undefined;
3054
+ metadata?: {
3055
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3056
+ } | undefined;
3057
+ providerMetadata?: {
3058
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3059
+ } | undefined;
3060
+ providerOptions?: {
3061
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3062
+ } | undefined;
3063
+ experimental_providerMetadata?: {
3064
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3065
+ } | undefined;
3066
+ type: 'tool-result';
3067
+ toolCallId: string;
3068
+ toolName?: string | undefined;
3069
+ result?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3070
+ output?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3071
+ })[];
3072
+ } | {
3073
+ id?: string | undefined;
3074
+ name?: string | undefined;
3075
+ metadata?: {
3076
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3077
+ } | undefined;
3078
+ providerMetadata?: {
3079
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3080
+ } | undefined;
3081
+ providerOptions?: {
3082
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3083
+ } | undefined;
3084
+ experimental_providerMetadata?: {
3085
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3086
+ } | undefined;
3087
+ role: 'system' | 'user' | 'assistant' | 'tool' | 'data';
3088
+ content?: (string | ({
3089
+ id?: string | undefined;
3090
+ name?: string | undefined;
3091
+ metadata?: {
3092
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3093
+ } | undefined;
3094
+ providerMetadata?: {
3095
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3096
+ } | undefined;
3097
+ providerOptions?: {
3098
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3099
+ } | undefined;
3100
+ experimental_providerMetadata?: {
3101
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3102
+ } | undefined;
3103
+ type: 'text';
3104
+ text: string;
3105
+ } | {
3106
+ id?: string | undefined;
3107
+ name?: string | undefined;
3108
+ metadata?: {
3109
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3110
+ } | undefined;
3111
+ providerMetadata?: {
3112
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3113
+ } | undefined;
3114
+ providerOptions?: {
3115
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3116
+ } | undefined;
3117
+ experimental_providerMetadata?: {
3118
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3119
+ } | undefined;
3120
+ type: 'image';
3121
+ image: string | {
3122
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3123
+ };
3124
+ mediaType?: string | undefined;
3125
+ mimeType?: string | undefined;
3126
+ } | {
3127
+ id?: string | undefined;
3128
+ name?: string | undefined;
3129
+ metadata?: {
3130
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3131
+ } | undefined;
3132
+ providerMetadata?: {
3133
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3134
+ } | undefined;
3135
+ providerOptions?: {
3136
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3137
+ } | undefined;
3138
+ experimental_providerMetadata?: {
3139
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3140
+ } | undefined;
3141
+ type: 'file';
3142
+ data?: (string | {
3143
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3144
+ }) | undefined;
3145
+ file?: (string | {
3146
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3147
+ }) | undefined;
3148
+ url?: string | undefined;
3149
+ mediaType?: string | undefined;
3150
+ mimeType?: string | undefined;
3151
+ filename?: string | undefined;
3152
+ } | {
3153
+ id?: string | undefined;
3154
+ name?: string | undefined;
3155
+ metadata?: {
3156
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3157
+ } | undefined;
3158
+ providerMetadata?: {
3159
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3160
+ } | undefined;
3161
+ providerOptions?: {
3162
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3163
+ } | undefined;
3164
+ experimental_providerMetadata?: {
3165
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3166
+ } | undefined;
3167
+ type: 'tool-call';
3168
+ toolCallId: string;
3169
+ toolName: string;
3170
+ args?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3171
+ input?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3172
+ } | {
3173
+ id?: string | undefined;
3174
+ name?: string | undefined;
3175
+ metadata?: {
3176
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3177
+ } | undefined;
3178
+ providerMetadata?: {
3179
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3180
+ } | undefined;
3181
+ providerOptions?: {
3182
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3183
+ } | undefined;
3184
+ experimental_providerMetadata?: {
3185
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3186
+ } | undefined;
3187
+ type: 'tool-result';
3188
+ toolCallId: string;
3189
+ toolName?: string | undefined;
3190
+ result?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3191
+ output?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3192
+ })[]) | undefined;
3193
+ parts?: ({
3194
+ id?: string | undefined;
3195
+ name?: string | undefined;
3196
+ metadata?: {
3197
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3198
+ } | undefined;
3199
+ providerMetadata?: {
3200
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3201
+ } | undefined;
3202
+ providerOptions?: {
3203
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3204
+ } | undefined;
3205
+ experimental_providerMetadata?: {
3206
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3207
+ } | undefined;
3208
+ type: 'text';
3209
+ text: string;
3210
+ } | {
3211
+ id?: string | undefined;
3212
+ name?: string | undefined;
3213
+ metadata?: {
3214
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3215
+ } | undefined;
3216
+ providerMetadata?: {
3217
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3218
+ } | undefined;
3219
+ providerOptions?: {
3220
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3221
+ } | undefined;
3222
+ experimental_providerMetadata?: {
3223
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3224
+ } | undefined;
3225
+ type: 'image';
3226
+ image: string | {
3227
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3228
+ };
3229
+ mediaType?: string | undefined;
3230
+ mimeType?: string | undefined;
3231
+ } | {
3232
+ id?: string | undefined;
3233
+ name?: string | undefined;
3234
+ metadata?: {
3235
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3236
+ } | undefined;
3237
+ providerMetadata?: {
3238
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3239
+ } | undefined;
3240
+ providerOptions?: {
3241
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3242
+ } | undefined;
3243
+ experimental_providerMetadata?: {
3244
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3245
+ } | undefined;
3246
+ type: 'file';
3247
+ data?: (string | {
3248
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3249
+ }) | undefined;
3250
+ file?: (string | {
3251
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3252
+ }) | undefined;
3253
+ url?: string | undefined;
3254
+ mediaType?: string | undefined;
3255
+ mimeType?: string | undefined;
3256
+ filename?: string | undefined;
3257
+ } | {
3258
+ id?: string | undefined;
3259
+ name?: string | undefined;
3260
+ metadata?: {
3261
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3262
+ } | undefined;
3263
+ providerMetadata?: {
3264
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3265
+ } | undefined;
3266
+ providerOptions?: {
3267
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3268
+ } | undefined;
3269
+ experimental_providerMetadata?: {
3270
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3271
+ } | undefined;
3272
+ type: 'tool-call';
3273
+ toolCallId: string;
3274
+ toolName: string;
3275
+ args?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3276
+ input?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3277
+ } | {
3278
+ id?: string | undefined;
3279
+ name?: string | undefined;
3280
+ metadata?: {
3281
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3282
+ } | undefined;
3283
+ providerMetadata?: {
3284
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3285
+ } | undefined;
3286
+ providerOptions?: {
3287
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3288
+ } | undefined;
3289
+ experimental_providerMetadata?: {
3290
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3291
+ } | undefined;
3292
+ type: 'tool-result';
3293
+ toolCallId: string;
3294
+ toolName?: string | undefined;
3295
+ result?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3296
+ output?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3297
+ })[] | undefined;
3298
+ createdAt?: (string | Date) | undefined;
3299
+ } | {
3300
+ id: string;
3301
+ role: 'system' | 'user' | 'assistant' | 'signal';
3302
+ createdAt: string | Date;
3303
+ threadId?: string | undefined;
3304
+ resourceId?: string | undefined;
3305
+ type?: string | undefined;
3306
+ content: {
3307
+ format: 2;
3308
+ parts: {
3309
+ type: string;
3310
+ [x: string]: unknown;
3311
+ }[];
3312
+ content?: (string | ({
3313
+ id?: string | undefined;
3314
+ name?: string | undefined;
3315
+ metadata?: {
3316
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3317
+ } | undefined;
3318
+ providerMetadata?: {
3319
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3320
+ } | undefined;
3321
+ providerOptions?: {
3322
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3323
+ } | undefined;
3324
+ experimental_providerMetadata?: {
3325
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3326
+ } | undefined;
3327
+ type: 'text';
3328
+ text: string;
3329
+ } | {
3330
+ id?: string | undefined;
3331
+ name?: string | undefined;
3332
+ metadata?: {
3333
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3334
+ } | undefined;
3335
+ providerMetadata?: {
3336
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3337
+ } | undefined;
3338
+ providerOptions?: {
3339
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3340
+ } | undefined;
3341
+ experimental_providerMetadata?: {
3342
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3343
+ } | undefined;
3344
+ type: 'image';
3345
+ image: string | {
3346
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3347
+ };
3348
+ mediaType?: string | undefined;
3349
+ mimeType?: string | undefined;
3350
+ } | {
3351
+ id?: string | undefined;
3352
+ name?: string | undefined;
3353
+ metadata?: {
3354
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3355
+ } | undefined;
3356
+ providerMetadata?: {
3357
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3358
+ } | undefined;
3359
+ providerOptions?: {
3360
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3361
+ } | undefined;
3362
+ experimental_providerMetadata?: {
3363
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3364
+ } | undefined;
3365
+ type: 'file';
3366
+ data?: (string | {
3367
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3368
+ }) | undefined;
3369
+ file?: (string | {
3370
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3371
+ }) | undefined;
3372
+ url?: string | undefined;
3373
+ mediaType?: string | undefined;
3374
+ mimeType?: string | undefined;
3375
+ filename?: string | undefined;
3376
+ } | {
3377
+ id?: string | undefined;
3378
+ name?: string | undefined;
3379
+ metadata?: {
3380
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3381
+ } | undefined;
3382
+ providerMetadata?: {
3383
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3384
+ } | undefined;
3385
+ providerOptions?: {
3386
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3387
+ } | undefined;
3388
+ experimental_providerMetadata?: {
3389
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3390
+ } | undefined;
3391
+ type: 'tool-call';
3392
+ toolCallId: string;
3393
+ toolName: string;
3394
+ args?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3395
+ input?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3396
+ } | {
3397
+ id?: string | undefined;
3398
+ name?: string | undefined;
3399
+ metadata?: {
3400
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3401
+ } | undefined;
3402
+ providerMetadata?: {
3403
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3404
+ } | undefined;
3405
+ providerOptions?: {
3406
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3407
+ } | undefined;
3408
+ experimental_providerMetadata?: {
3409
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3410
+ } | undefined;
3411
+ type: 'tool-result';
3412
+ toolCallId: string;
3413
+ toolName?: string | undefined;
3414
+ result?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3415
+ output?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3416
+ })[]) | undefined;
3417
+ experimental_attachments?: {
3418
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3419
+ }[] | undefined;
3420
+ toolInvocations?: {
3421
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3422
+ }[] | undefined;
3423
+ reasoning?: string | undefined;
3424
+ annotations?: PostAgentsAgentIdSignals_Body_Auxiliary_2[] | undefined;
3425
+ metadata?: {
3426
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3427
+ } | undefined;
3428
+ providerMetadata?: {
3429
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3430
+ } | undefined;
3431
+ [x: string]: unknown;
3432
+ };
3433
+ }) | ({
3434
+ id?: string | undefined;
3435
+ name?: string | undefined;
3436
+ metadata?: {
3437
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3438
+ } | undefined;
3439
+ providerMetadata?: {
3440
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3441
+ } | undefined;
3442
+ providerOptions?: {
3443
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3444
+ } | undefined;
3445
+ experimental_providerMetadata?: {
3446
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3447
+ } | undefined;
3448
+ role: 'system' | 'user' | 'assistant' | 'tool';
3449
+ content: string | ({
3450
+ id?: string | undefined;
3451
+ name?: string | undefined;
3452
+ metadata?: {
3453
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3454
+ } | undefined;
3455
+ providerMetadata?: {
3456
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3457
+ } | undefined;
3458
+ providerOptions?: {
3459
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3460
+ } | undefined;
3461
+ experimental_providerMetadata?: {
3462
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3463
+ } | undefined;
3464
+ type: 'text';
3465
+ text: string;
3466
+ } | {
3467
+ id?: string | undefined;
3468
+ name?: string | undefined;
3469
+ metadata?: {
3470
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3471
+ } | undefined;
3472
+ providerMetadata?: {
3473
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3474
+ } | undefined;
3475
+ providerOptions?: {
3476
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3477
+ } | undefined;
3478
+ experimental_providerMetadata?: {
3479
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3480
+ } | undefined;
3481
+ type: 'image';
3482
+ image: string | {
3483
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3484
+ };
3485
+ mediaType?: string | undefined;
3486
+ mimeType?: string | undefined;
3487
+ } | {
3488
+ id?: string | undefined;
3489
+ name?: string | undefined;
3490
+ metadata?: {
3491
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3492
+ } | undefined;
3493
+ providerMetadata?: {
3494
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3495
+ } | undefined;
3496
+ providerOptions?: {
3497
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3498
+ } | undefined;
3499
+ experimental_providerMetadata?: {
3500
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3501
+ } | undefined;
3502
+ type: 'file';
3503
+ data?: (string | {
3504
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3505
+ }) | undefined;
3506
+ file?: (string | {
3507
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3508
+ }) | undefined;
3509
+ url?: string | undefined;
3510
+ mediaType?: string | undefined;
3511
+ mimeType?: string | undefined;
3512
+ filename?: string | undefined;
3513
+ } | {
3514
+ id?: string | undefined;
3515
+ name?: string | undefined;
3516
+ metadata?: {
3517
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3518
+ } | undefined;
3519
+ providerMetadata?: {
3520
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3521
+ } | undefined;
3522
+ providerOptions?: {
3523
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3524
+ } | undefined;
3525
+ experimental_providerMetadata?: {
3526
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3527
+ } | undefined;
3528
+ type: 'tool-call';
3529
+ toolCallId: string;
3530
+ toolName: string;
3531
+ args?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3532
+ input?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3533
+ } | {
3534
+ id?: string | undefined;
3535
+ name?: string | undefined;
3536
+ metadata?: {
3537
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3538
+ } | undefined;
3539
+ providerMetadata?: {
3540
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3541
+ } | undefined;
3542
+ providerOptions?: {
3543
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3544
+ } | undefined;
3545
+ experimental_providerMetadata?: {
3546
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3547
+ } | undefined;
3548
+ type: 'tool-result';
3549
+ toolCallId: string;
3550
+ toolName?: string | undefined;
3551
+ result?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3552
+ output?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3553
+ })[];
3554
+ } | {
3555
+ id?: string | undefined;
3556
+ name?: string | undefined;
3557
+ metadata?: {
3558
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3559
+ } | undefined;
3560
+ providerMetadata?: {
3561
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3562
+ } | undefined;
3563
+ providerOptions?: {
3564
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3565
+ } | undefined;
3566
+ experimental_providerMetadata?: {
3567
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3568
+ } | undefined;
3569
+ role: 'system' | 'user' | 'assistant' | 'tool' | 'data';
3570
+ content?: (string | ({
3571
+ id?: string | undefined;
3572
+ name?: string | undefined;
3573
+ metadata?: {
3574
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3575
+ } | undefined;
3576
+ providerMetadata?: {
3577
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3578
+ } | undefined;
3579
+ providerOptions?: {
3580
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3581
+ } | undefined;
3582
+ experimental_providerMetadata?: {
3583
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3584
+ } | undefined;
3585
+ type: 'text';
3586
+ text: string;
3587
+ } | {
3588
+ id?: string | undefined;
3589
+ name?: string | undefined;
3590
+ metadata?: {
3591
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3592
+ } | undefined;
3593
+ providerMetadata?: {
3594
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3595
+ } | undefined;
3596
+ providerOptions?: {
3597
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3598
+ } | undefined;
3599
+ experimental_providerMetadata?: {
3600
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3601
+ } | undefined;
3602
+ type: 'image';
3603
+ image: string | {
3604
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3605
+ };
3606
+ mediaType?: string | undefined;
3607
+ mimeType?: string | undefined;
3608
+ } | {
3609
+ id?: string | undefined;
3610
+ name?: string | undefined;
3611
+ metadata?: {
3612
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3613
+ } | undefined;
3614
+ providerMetadata?: {
3615
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3616
+ } | undefined;
3617
+ providerOptions?: {
3618
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3619
+ } | undefined;
3620
+ experimental_providerMetadata?: {
3621
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3622
+ } | undefined;
3623
+ type: 'file';
3624
+ data?: (string | {
3625
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3626
+ }) | undefined;
3627
+ file?: (string | {
3628
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3629
+ }) | undefined;
3630
+ url?: string | undefined;
3631
+ mediaType?: string | undefined;
3632
+ mimeType?: string | undefined;
3633
+ filename?: string | undefined;
3634
+ } | {
3635
+ id?: string | undefined;
3636
+ name?: string | undefined;
3637
+ metadata?: {
3638
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3639
+ } | undefined;
3640
+ providerMetadata?: {
3641
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3642
+ } | undefined;
3643
+ providerOptions?: {
3644
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3645
+ } | undefined;
3646
+ experimental_providerMetadata?: {
3647
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3648
+ } | undefined;
3649
+ type: 'tool-call';
3650
+ toolCallId: string;
3651
+ toolName: string;
3652
+ args?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3653
+ input?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3654
+ } | {
3655
+ id?: string | undefined;
3656
+ name?: string | undefined;
3657
+ metadata?: {
3658
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3659
+ } | undefined;
3660
+ providerMetadata?: {
3661
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3662
+ } | undefined;
3663
+ providerOptions?: {
3664
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3665
+ } | undefined;
3666
+ experimental_providerMetadata?: {
3667
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3668
+ } | undefined;
3669
+ type: 'tool-result';
3670
+ toolCallId: string;
3671
+ toolName?: string | undefined;
3672
+ result?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3673
+ output?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3674
+ })[]) | undefined;
3675
+ parts?: ({
3676
+ id?: string | undefined;
3677
+ name?: string | undefined;
3678
+ metadata?: {
3679
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3680
+ } | undefined;
3681
+ providerMetadata?: {
3682
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3683
+ } | undefined;
3684
+ providerOptions?: {
3685
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3686
+ } | undefined;
3687
+ experimental_providerMetadata?: {
3688
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3689
+ } | undefined;
3690
+ type: 'text';
3691
+ text: string;
3692
+ } | {
3693
+ id?: string | undefined;
3694
+ name?: string | undefined;
3695
+ metadata?: {
3696
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3697
+ } | undefined;
3698
+ providerMetadata?: {
3699
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3700
+ } | undefined;
3701
+ providerOptions?: {
3702
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3703
+ } | undefined;
3704
+ experimental_providerMetadata?: {
3705
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3706
+ } | undefined;
3707
+ type: 'image';
3708
+ image: string | {
3709
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3710
+ };
3711
+ mediaType?: string | undefined;
3712
+ mimeType?: string | undefined;
3713
+ } | {
3714
+ id?: string | undefined;
3715
+ name?: string | undefined;
3716
+ metadata?: {
3717
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3718
+ } | undefined;
3719
+ providerMetadata?: {
3720
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3721
+ } | undefined;
3722
+ providerOptions?: {
3723
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3724
+ } | undefined;
3725
+ experimental_providerMetadata?: {
3726
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3727
+ } | undefined;
3728
+ type: 'file';
3729
+ data?: (string | {
3730
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3731
+ }) | undefined;
3732
+ file?: (string | {
3733
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3734
+ }) | undefined;
3735
+ url?: string | undefined;
3736
+ mediaType?: string | undefined;
3737
+ mimeType?: string | undefined;
3738
+ filename?: string | undefined;
3739
+ } | {
3740
+ id?: string | undefined;
3741
+ name?: string | undefined;
3742
+ metadata?: {
3743
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3744
+ } | undefined;
3745
+ providerMetadata?: {
3746
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3747
+ } | undefined;
3748
+ providerOptions?: {
3749
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3750
+ } | undefined;
3751
+ experimental_providerMetadata?: {
3752
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3753
+ } | undefined;
3754
+ type: 'tool-call';
3755
+ toolCallId: string;
3756
+ toolName: string;
3757
+ args?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3758
+ input?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3759
+ } | {
3760
+ id?: string | undefined;
3761
+ name?: string | undefined;
3762
+ metadata?: {
3763
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3764
+ } | undefined;
3765
+ providerMetadata?: {
3766
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3767
+ } | undefined;
3768
+ providerOptions?: {
3769
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3770
+ } | undefined;
3771
+ experimental_providerMetadata?: {
3772
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3773
+ } | undefined;
3774
+ type: 'tool-result';
3775
+ toolCallId: string;
3776
+ toolName?: string | undefined;
3777
+ result?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3778
+ output?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3779
+ })[] | undefined;
3780
+ createdAt?: (string | Date) | undefined;
3781
+ } | {
3782
+ id: string;
3783
+ role: 'system' | 'user' | 'assistant' | 'signal';
3784
+ createdAt: string | Date;
3785
+ threadId?: string | undefined;
3786
+ resourceId?: string | undefined;
3787
+ type?: string | undefined;
3788
+ content: {
3789
+ format: 2;
3790
+ parts: {
3791
+ type: string;
3792
+ [x: string]: unknown;
3793
+ }[];
3794
+ content?: (string | ({
3795
+ id?: string | undefined;
3796
+ name?: string | undefined;
3797
+ metadata?: {
3798
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3799
+ } | undefined;
3800
+ providerMetadata?: {
3801
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3802
+ } | undefined;
3803
+ providerOptions?: {
3804
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3805
+ } | undefined;
3806
+ experimental_providerMetadata?: {
3807
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3808
+ } | undefined;
3809
+ type: 'text';
3810
+ text: string;
3811
+ } | {
3812
+ id?: string | undefined;
3813
+ name?: string | undefined;
3814
+ metadata?: {
3815
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3816
+ } | undefined;
3817
+ providerMetadata?: {
3818
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3819
+ } | undefined;
3820
+ providerOptions?: {
3821
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3822
+ } | undefined;
3823
+ experimental_providerMetadata?: {
3824
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3825
+ } | undefined;
3826
+ type: 'image';
3827
+ image: string | {
3828
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3829
+ };
3830
+ mediaType?: string | undefined;
3831
+ mimeType?: string | undefined;
3832
+ } | {
3833
+ id?: string | undefined;
3834
+ name?: string | undefined;
3835
+ metadata?: {
3836
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3837
+ } | undefined;
3838
+ providerMetadata?: {
3839
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3840
+ } | undefined;
3841
+ providerOptions?: {
3842
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3843
+ } | undefined;
3844
+ experimental_providerMetadata?: {
3845
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3846
+ } | undefined;
3847
+ type: 'file';
3848
+ data?: (string | {
3849
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3850
+ }) | undefined;
3851
+ file?: (string | {
3852
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3853
+ }) | undefined;
3854
+ url?: string | undefined;
3855
+ mediaType?: string | undefined;
3856
+ mimeType?: string | undefined;
3857
+ filename?: string | undefined;
3858
+ } | {
3859
+ id?: string | undefined;
3860
+ name?: string | undefined;
3861
+ metadata?: {
3862
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3863
+ } | undefined;
3864
+ providerMetadata?: {
3865
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3866
+ } | undefined;
3867
+ providerOptions?: {
3868
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3869
+ } | undefined;
3870
+ experimental_providerMetadata?: {
3871
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3872
+ } | undefined;
3873
+ type: 'tool-call';
3874
+ toolCallId: string;
3875
+ toolName: string;
3876
+ args?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3877
+ input?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3878
+ } | {
3879
+ id?: string | undefined;
3880
+ name?: string | undefined;
3881
+ metadata?: {
3882
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3883
+ } | undefined;
3884
+ providerMetadata?: {
3885
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3886
+ } | undefined;
3887
+ providerOptions?: {
3888
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3889
+ } | undefined;
3890
+ experimental_providerMetadata?: {
3891
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3892
+ } | undefined;
3893
+ type: 'tool-result';
3894
+ toolCallId: string;
3895
+ toolName?: string | undefined;
3896
+ result?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3897
+ output?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
3898
+ })[]) | undefined;
3899
+ experimental_attachments?: {
3900
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3901
+ }[] | undefined;
3902
+ toolInvocations?: {
3903
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3904
+ }[] | undefined;
3905
+ reasoning?: string | undefined;
3906
+ annotations?: PostAgentsAgentIdSignals_Body_Auxiliary_2[] | undefined;
3907
+ metadata?: {
3908
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3909
+ } | undefined;
3910
+ providerMetadata?: {
3911
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3912
+ } | undefined;
3913
+ [x: string]: unknown;
3914
+ };
3915
+ })[];
3916
+ } | {
3917
+ id?: string | undefined;
3918
+ createdAt?: (string | Date) | undefined;
3919
+ metadata?: {
3920
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3921
+ } | undefined;
3922
+ attributes?: {
3923
+ [key: string]: string | number | boolean | null | undefined;
3924
+ } | undefined;
3925
+ type: string;
3926
+ contents: string;
3927
+ };
3928
+ ifActive?: {
3929
+ behavior?: ('deliver' | 'persist' | 'discard') | undefined;
3930
+ } | undefined;
3931
+ runId: string;
3932
+ resourceId?: string | undefined;
3933
+ threadId?: string | undefined;
3934
+ ifIdle?: undefined | undefined;
3935
+ } | {
3936
+ signal: {
3937
+ id?: string | undefined;
3938
+ createdAt?: (string | Date) | undefined;
3939
+ metadata?: {
3940
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3941
+ } | undefined;
3942
+ attributes?: {
3943
+ [key: string]: string | number | boolean | null | undefined;
3944
+ } | undefined;
3945
+ type: 'user-message';
3946
+ contents: string | string[] | ({
3947
+ id?: string | undefined;
3948
+ name?: string | undefined;
3949
+ metadata?: {
3950
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3951
+ } | undefined;
3952
+ providerMetadata?: {
3953
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3954
+ } | undefined;
3955
+ providerOptions?: {
3956
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3957
+ } | undefined;
3958
+ experimental_providerMetadata?: {
3959
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3960
+ } | undefined;
3961
+ role: 'system' | 'user' | 'assistant' | 'tool';
3962
+ content: string | ({
3963
+ id?: string | undefined;
3964
+ name?: string | undefined;
3965
+ metadata?: {
3966
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3967
+ } | undefined;
3968
+ providerMetadata?: {
3969
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3970
+ } | undefined;
3971
+ providerOptions?: {
3972
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3973
+ } | undefined;
3974
+ experimental_providerMetadata?: {
3975
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3976
+ } | undefined;
3977
+ type: 'text';
3978
+ text: string;
3979
+ } | {
3980
+ id?: string | undefined;
3981
+ name?: string | undefined;
3982
+ metadata?: {
3983
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3984
+ } | undefined;
3985
+ providerMetadata?: {
3986
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3987
+ } | undefined;
3988
+ providerOptions?: {
3989
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3990
+ } | undefined;
3991
+ experimental_providerMetadata?: {
3992
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3993
+ } | undefined;
3994
+ type: 'image';
3995
+ image: string | {
3996
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3997
+ };
3998
+ mediaType?: string | undefined;
3999
+ mimeType?: string | undefined;
4000
+ } | {
4001
+ id?: string | undefined;
4002
+ name?: string | undefined;
4003
+ metadata?: {
4004
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4005
+ } | undefined;
4006
+ providerMetadata?: {
4007
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4008
+ } | undefined;
4009
+ providerOptions?: {
4010
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4011
+ } | undefined;
4012
+ experimental_providerMetadata?: {
4013
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4014
+ } | undefined;
4015
+ type: 'file';
4016
+ data?: (string | {
4017
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4018
+ }) | undefined;
4019
+ file?: (string | {
4020
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4021
+ }) | undefined;
4022
+ url?: string | undefined;
4023
+ mediaType?: string | undefined;
4024
+ mimeType?: string | undefined;
4025
+ filename?: string | undefined;
4026
+ } | {
4027
+ id?: string | undefined;
4028
+ name?: string | undefined;
4029
+ metadata?: {
4030
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4031
+ } | undefined;
4032
+ providerMetadata?: {
4033
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4034
+ } | undefined;
4035
+ providerOptions?: {
4036
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4037
+ } | undefined;
4038
+ experimental_providerMetadata?: {
4039
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4040
+ } | undefined;
4041
+ type: 'tool-call';
4042
+ toolCallId: string;
4043
+ toolName: string;
4044
+ args?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4045
+ input?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4046
+ } | {
4047
+ id?: string | undefined;
4048
+ name?: string | undefined;
4049
+ metadata?: {
4050
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4051
+ } | undefined;
4052
+ providerMetadata?: {
4053
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4054
+ } | undefined;
4055
+ providerOptions?: {
4056
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4057
+ } | undefined;
4058
+ experimental_providerMetadata?: {
4059
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4060
+ } | undefined;
4061
+ type: 'tool-result';
4062
+ toolCallId: string;
4063
+ toolName?: string | undefined;
4064
+ result?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4065
+ output?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4066
+ })[];
4067
+ } | {
4068
+ id?: string | undefined;
4069
+ name?: string | undefined;
4070
+ metadata?: {
4071
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4072
+ } | undefined;
4073
+ providerMetadata?: {
4074
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4075
+ } | undefined;
4076
+ providerOptions?: {
4077
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4078
+ } | undefined;
4079
+ experimental_providerMetadata?: {
4080
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4081
+ } | undefined;
4082
+ role: 'system' | 'user' | 'assistant' | 'tool' | 'data';
4083
+ content?: (string | ({
4084
+ id?: string | undefined;
4085
+ name?: string | undefined;
4086
+ metadata?: {
4087
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4088
+ } | undefined;
4089
+ providerMetadata?: {
4090
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4091
+ } | undefined;
4092
+ providerOptions?: {
4093
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4094
+ } | undefined;
4095
+ experimental_providerMetadata?: {
4096
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4097
+ } | undefined;
4098
+ type: 'text';
4099
+ text: string;
4100
+ } | {
4101
+ id?: string | undefined;
4102
+ name?: string | undefined;
4103
+ metadata?: {
4104
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4105
+ } | undefined;
4106
+ providerMetadata?: {
4107
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4108
+ } | undefined;
4109
+ providerOptions?: {
4110
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4111
+ } | undefined;
4112
+ experimental_providerMetadata?: {
4113
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4114
+ } | undefined;
4115
+ type: 'image';
4116
+ image: string | {
4117
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4118
+ };
4119
+ mediaType?: string | undefined;
4120
+ mimeType?: string | undefined;
4121
+ } | {
4122
+ id?: string | undefined;
4123
+ name?: string | undefined;
4124
+ metadata?: {
4125
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4126
+ } | undefined;
4127
+ providerMetadata?: {
4128
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4129
+ } | undefined;
4130
+ providerOptions?: {
4131
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4132
+ } | undefined;
4133
+ experimental_providerMetadata?: {
4134
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4135
+ } | undefined;
4136
+ type: 'file';
4137
+ data?: (string | {
4138
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4139
+ }) | undefined;
4140
+ file?: (string | {
4141
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4142
+ }) | undefined;
4143
+ url?: string | undefined;
4144
+ mediaType?: string | undefined;
4145
+ mimeType?: string | undefined;
4146
+ filename?: string | undefined;
4147
+ } | {
4148
+ id?: string | undefined;
4149
+ name?: string | undefined;
4150
+ metadata?: {
4151
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4152
+ } | undefined;
4153
+ providerMetadata?: {
4154
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4155
+ } | undefined;
4156
+ providerOptions?: {
4157
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4158
+ } | undefined;
4159
+ experimental_providerMetadata?: {
4160
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4161
+ } | undefined;
4162
+ type: 'tool-call';
4163
+ toolCallId: string;
4164
+ toolName: string;
4165
+ args?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4166
+ input?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4167
+ } | {
4168
+ id?: string | undefined;
4169
+ name?: string | undefined;
4170
+ metadata?: {
4171
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4172
+ } | undefined;
4173
+ providerMetadata?: {
4174
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4175
+ } | undefined;
4176
+ providerOptions?: {
4177
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4178
+ } | undefined;
4179
+ experimental_providerMetadata?: {
4180
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4181
+ } | undefined;
4182
+ type: 'tool-result';
4183
+ toolCallId: string;
4184
+ toolName?: string | undefined;
4185
+ result?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4186
+ output?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4187
+ })[]) | undefined;
4188
+ parts?: ({
4189
+ id?: string | undefined;
4190
+ name?: string | undefined;
4191
+ metadata?: {
4192
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4193
+ } | undefined;
4194
+ providerMetadata?: {
4195
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4196
+ } | undefined;
4197
+ providerOptions?: {
4198
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4199
+ } | undefined;
4200
+ experimental_providerMetadata?: {
4201
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4202
+ } | undefined;
4203
+ type: 'text';
4204
+ text: string;
4205
+ } | {
4206
+ id?: string | undefined;
4207
+ name?: string | undefined;
4208
+ metadata?: {
4209
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4210
+ } | undefined;
4211
+ providerMetadata?: {
4212
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4213
+ } | undefined;
4214
+ providerOptions?: {
4215
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4216
+ } | undefined;
4217
+ experimental_providerMetadata?: {
4218
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4219
+ } | undefined;
4220
+ type: 'image';
4221
+ image: string | {
4222
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4223
+ };
4224
+ mediaType?: string | undefined;
4225
+ mimeType?: string | undefined;
4226
+ } | {
4227
+ id?: string | undefined;
4228
+ name?: string | undefined;
4229
+ metadata?: {
4230
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4231
+ } | undefined;
4232
+ providerMetadata?: {
4233
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4234
+ } | undefined;
4235
+ providerOptions?: {
4236
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4237
+ } | undefined;
4238
+ experimental_providerMetadata?: {
4239
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4240
+ } | undefined;
4241
+ type: 'file';
4242
+ data?: (string | {
4243
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4244
+ }) | undefined;
4245
+ file?: (string | {
4246
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4247
+ }) | undefined;
4248
+ url?: string | undefined;
4249
+ mediaType?: string | undefined;
4250
+ mimeType?: string | undefined;
4251
+ filename?: string | undefined;
4252
+ } | {
4253
+ id?: string | undefined;
4254
+ name?: string | undefined;
4255
+ metadata?: {
4256
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4257
+ } | undefined;
4258
+ providerMetadata?: {
4259
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4260
+ } | undefined;
4261
+ providerOptions?: {
4262
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4263
+ } | undefined;
4264
+ experimental_providerMetadata?: {
4265
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4266
+ } | undefined;
4267
+ type: 'tool-call';
4268
+ toolCallId: string;
4269
+ toolName: string;
4270
+ args?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4271
+ input?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4272
+ } | {
4273
+ id?: string | undefined;
4274
+ name?: string | undefined;
4275
+ metadata?: {
4276
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4277
+ } | undefined;
4278
+ providerMetadata?: {
4279
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4280
+ } | undefined;
4281
+ providerOptions?: {
4282
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4283
+ } | undefined;
4284
+ experimental_providerMetadata?: {
4285
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4286
+ } | undefined;
4287
+ type: 'tool-result';
4288
+ toolCallId: string;
4289
+ toolName?: string | undefined;
4290
+ result?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4291
+ output?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4292
+ })[] | undefined;
4293
+ createdAt?: (string | Date) | undefined;
4294
+ } | {
4295
+ id: string;
4296
+ role: 'system' | 'user' | 'assistant' | 'signal';
4297
+ createdAt: string | Date;
4298
+ threadId?: string | undefined;
4299
+ resourceId?: string | undefined;
4300
+ type?: string | undefined;
4301
+ content: {
4302
+ format: 2;
4303
+ parts: {
4304
+ type: string;
4305
+ [x: string]: unknown;
4306
+ }[];
4307
+ content?: (string | ({
4308
+ id?: string | undefined;
4309
+ name?: string | undefined;
4310
+ metadata?: {
4311
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4312
+ } | undefined;
4313
+ providerMetadata?: {
4314
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4315
+ } | undefined;
4316
+ providerOptions?: {
4317
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4318
+ } | undefined;
4319
+ experimental_providerMetadata?: {
4320
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4321
+ } | undefined;
4322
+ type: 'text';
4323
+ text: string;
4324
+ } | {
4325
+ id?: string | undefined;
4326
+ name?: string | undefined;
4327
+ metadata?: {
4328
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4329
+ } | undefined;
4330
+ providerMetadata?: {
4331
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4332
+ } | undefined;
4333
+ providerOptions?: {
4334
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4335
+ } | undefined;
4336
+ experimental_providerMetadata?: {
4337
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4338
+ } | undefined;
4339
+ type: 'image';
4340
+ image: string | {
4341
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4342
+ };
4343
+ mediaType?: string | undefined;
4344
+ mimeType?: string | undefined;
4345
+ } | {
4346
+ id?: string | undefined;
4347
+ name?: string | undefined;
4348
+ metadata?: {
4349
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4350
+ } | undefined;
4351
+ providerMetadata?: {
4352
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4353
+ } | undefined;
4354
+ providerOptions?: {
4355
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4356
+ } | undefined;
4357
+ experimental_providerMetadata?: {
4358
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4359
+ } | undefined;
4360
+ type: 'file';
4361
+ data?: (string | {
4362
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4363
+ }) | undefined;
4364
+ file?: (string | {
4365
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4366
+ }) | undefined;
4367
+ url?: string | undefined;
4368
+ mediaType?: string | undefined;
4369
+ mimeType?: string | undefined;
4370
+ filename?: string | undefined;
4371
+ } | {
4372
+ id?: string | undefined;
4373
+ name?: string | undefined;
4374
+ metadata?: {
4375
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4376
+ } | undefined;
4377
+ providerMetadata?: {
4378
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4379
+ } | undefined;
4380
+ providerOptions?: {
4381
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4382
+ } | undefined;
4383
+ experimental_providerMetadata?: {
4384
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4385
+ } | undefined;
4386
+ type: 'tool-call';
4387
+ toolCallId: string;
4388
+ toolName: string;
4389
+ args?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4390
+ input?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4391
+ } | {
4392
+ id?: string | undefined;
4393
+ name?: string | undefined;
4394
+ metadata?: {
4395
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4396
+ } | undefined;
4397
+ providerMetadata?: {
4398
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4399
+ } | undefined;
4400
+ providerOptions?: {
4401
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4402
+ } | undefined;
4403
+ experimental_providerMetadata?: {
4404
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4405
+ } | undefined;
4406
+ type: 'tool-result';
4407
+ toolCallId: string;
4408
+ toolName?: string | undefined;
4409
+ result?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4410
+ output?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4411
+ })[]) | undefined;
4412
+ experimental_attachments?: {
4413
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4414
+ }[] | undefined;
4415
+ toolInvocations?: {
4416
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4417
+ }[] | undefined;
4418
+ reasoning?: string | undefined;
4419
+ annotations?: PostAgentsAgentIdSignals_Body_Auxiliary_2[] | undefined;
4420
+ metadata?: {
4421
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4422
+ } | undefined;
4423
+ providerMetadata?: {
4424
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4425
+ } | undefined;
4426
+ [x: string]: unknown;
4427
+ };
4428
+ }) | ({
4429
+ id?: string | undefined;
4430
+ name?: string | undefined;
4431
+ metadata?: {
4432
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4433
+ } | undefined;
4434
+ providerMetadata?: {
4435
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4436
+ } | undefined;
4437
+ providerOptions?: {
4438
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4439
+ } | undefined;
4440
+ experimental_providerMetadata?: {
4441
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4442
+ } | undefined;
4443
+ role: 'system' | 'user' | 'assistant' | 'tool';
4444
+ content: string | ({
4445
+ id?: string | undefined;
4446
+ name?: string | undefined;
4447
+ metadata?: {
4448
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4449
+ } | undefined;
4450
+ providerMetadata?: {
4451
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4452
+ } | undefined;
4453
+ providerOptions?: {
4454
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4455
+ } | undefined;
4456
+ experimental_providerMetadata?: {
4457
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4458
+ } | undefined;
4459
+ type: 'text';
4460
+ text: string;
4461
+ } | {
4462
+ id?: string | undefined;
4463
+ name?: string | undefined;
4464
+ metadata?: {
4465
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4466
+ } | undefined;
4467
+ providerMetadata?: {
4468
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4469
+ } | undefined;
4470
+ providerOptions?: {
4471
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4472
+ } | undefined;
4473
+ experimental_providerMetadata?: {
4474
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4475
+ } | undefined;
4476
+ type: 'image';
4477
+ image: string | {
4478
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4479
+ };
4480
+ mediaType?: string | undefined;
4481
+ mimeType?: string | undefined;
4482
+ } | {
4483
+ id?: string | undefined;
4484
+ name?: string | undefined;
4485
+ metadata?: {
4486
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4487
+ } | undefined;
4488
+ providerMetadata?: {
4489
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4490
+ } | undefined;
4491
+ providerOptions?: {
4492
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4493
+ } | undefined;
4494
+ experimental_providerMetadata?: {
4495
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4496
+ } | undefined;
4497
+ type: 'file';
4498
+ data?: (string | {
4499
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4500
+ }) | undefined;
4501
+ file?: (string | {
4502
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4503
+ }) | undefined;
4504
+ url?: string | undefined;
4505
+ mediaType?: string | undefined;
4506
+ mimeType?: string | undefined;
4507
+ filename?: string | undefined;
4508
+ } | {
4509
+ id?: string | undefined;
4510
+ name?: string | undefined;
4511
+ metadata?: {
4512
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4513
+ } | undefined;
4514
+ providerMetadata?: {
4515
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4516
+ } | undefined;
4517
+ providerOptions?: {
4518
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4519
+ } | undefined;
4520
+ experimental_providerMetadata?: {
4521
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4522
+ } | undefined;
4523
+ type: 'tool-call';
4524
+ toolCallId: string;
4525
+ toolName: string;
4526
+ args?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4527
+ input?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4528
+ } | {
4529
+ id?: string | undefined;
4530
+ name?: string | undefined;
4531
+ metadata?: {
4532
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4533
+ } | undefined;
4534
+ providerMetadata?: {
4535
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4536
+ } | undefined;
4537
+ providerOptions?: {
4538
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4539
+ } | undefined;
4540
+ experimental_providerMetadata?: {
4541
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4542
+ } | undefined;
4543
+ type: 'tool-result';
4544
+ toolCallId: string;
4545
+ toolName?: string | undefined;
4546
+ result?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4547
+ output?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4548
+ })[];
4549
+ } | {
4550
+ id?: string | undefined;
4551
+ name?: string | undefined;
4552
+ metadata?: {
4553
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4554
+ } | undefined;
4555
+ providerMetadata?: {
4556
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4557
+ } | undefined;
4558
+ providerOptions?: {
4559
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4560
+ } | undefined;
4561
+ experimental_providerMetadata?: {
4562
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4563
+ } | undefined;
4564
+ role: 'system' | 'user' | 'assistant' | 'tool' | 'data';
4565
+ content?: (string | ({
4566
+ id?: string | undefined;
4567
+ name?: string | undefined;
4568
+ metadata?: {
4569
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4570
+ } | undefined;
4571
+ providerMetadata?: {
4572
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4573
+ } | undefined;
4574
+ providerOptions?: {
4575
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4576
+ } | undefined;
4577
+ experimental_providerMetadata?: {
4578
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4579
+ } | undefined;
4580
+ type: 'text';
4581
+ text: string;
4582
+ } | {
4583
+ id?: string | undefined;
4584
+ name?: string | undefined;
4585
+ metadata?: {
4586
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4587
+ } | undefined;
4588
+ providerMetadata?: {
4589
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4590
+ } | undefined;
4591
+ providerOptions?: {
4592
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4593
+ } | undefined;
4594
+ experimental_providerMetadata?: {
4595
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4596
+ } | undefined;
4597
+ type: 'image';
4598
+ image: string | {
4599
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4600
+ };
4601
+ mediaType?: string | undefined;
4602
+ mimeType?: string | undefined;
4603
+ } | {
4604
+ id?: string | undefined;
4605
+ name?: string | undefined;
4606
+ metadata?: {
4607
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4608
+ } | undefined;
4609
+ providerMetadata?: {
4610
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4611
+ } | undefined;
4612
+ providerOptions?: {
4613
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4614
+ } | undefined;
4615
+ experimental_providerMetadata?: {
4616
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4617
+ } | undefined;
4618
+ type: 'file';
4619
+ data?: (string | {
4620
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4621
+ }) | undefined;
4622
+ file?: (string | {
4623
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4624
+ }) | undefined;
4625
+ url?: string | undefined;
4626
+ mediaType?: string | undefined;
4627
+ mimeType?: string | undefined;
4628
+ filename?: string | undefined;
4629
+ } | {
4630
+ id?: string | undefined;
4631
+ name?: string | undefined;
4632
+ metadata?: {
4633
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4634
+ } | undefined;
4635
+ providerMetadata?: {
4636
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4637
+ } | undefined;
4638
+ providerOptions?: {
4639
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4640
+ } | undefined;
4641
+ experimental_providerMetadata?: {
4642
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4643
+ } | undefined;
4644
+ type: 'tool-call';
4645
+ toolCallId: string;
4646
+ toolName: string;
4647
+ args?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4648
+ input?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4649
+ } | {
4650
+ id?: string | undefined;
4651
+ name?: string | undefined;
4652
+ metadata?: {
4653
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4654
+ } | undefined;
4655
+ providerMetadata?: {
4656
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4657
+ } | undefined;
4658
+ providerOptions?: {
4659
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4660
+ } | undefined;
4661
+ experimental_providerMetadata?: {
4662
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4663
+ } | undefined;
4664
+ type: 'tool-result';
4665
+ toolCallId: string;
4666
+ toolName?: string | undefined;
4667
+ result?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4668
+ output?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4669
+ })[]) | undefined;
4670
+ parts?: ({
4671
+ id?: string | undefined;
4672
+ name?: string | undefined;
4673
+ metadata?: {
4674
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4675
+ } | undefined;
4676
+ providerMetadata?: {
4677
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4678
+ } | undefined;
4679
+ providerOptions?: {
4680
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4681
+ } | undefined;
4682
+ experimental_providerMetadata?: {
4683
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4684
+ } | undefined;
4685
+ type: 'text';
4686
+ text: string;
4687
+ } | {
4688
+ id?: string | undefined;
4689
+ name?: string | undefined;
4690
+ metadata?: {
4691
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4692
+ } | undefined;
4693
+ providerMetadata?: {
4694
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4695
+ } | undefined;
4696
+ providerOptions?: {
4697
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4698
+ } | undefined;
4699
+ experimental_providerMetadata?: {
4700
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4701
+ } | undefined;
4702
+ type: 'image';
4703
+ image: string | {
4704
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4705
+ };
4706
+ mediaType?: string | undefined;
4707
+ mimeType?: string | undefined;
4708
+ } | {
4709
+ id?: string | undefined;
4710
+ name?: string | undefined;
4711
+ metadata?: {
4712
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4713
+ } | undefined;
4714
+ providerMetadata?: {
4715
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4716
+ } | undefined;
4717
+ providerOptions?: {
4718
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4719
+ } | undefined;
4720
+ experimental_providerMetadata?: {
4721
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4722
+ } | undefined;
4723
+ type: 'file';
4724
+ data?: (string | {
4725
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4726
+ }) | undefined;
4727
+ file?: (string | {
4728
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4729
+ }) | undefined;
4730
+ url?: string | undefined;
4731
+ mediaType?: string | undefined;
4732
+ mimeType?: string | undefined;
4733
+ filename?: string | undefined;
4734
+ } | {
4735
+ id?: string | undefined;
4736
+ name?: string | undefined;
4737
+ metadata?: {
4738
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4739
+ } | undefined;
4740
+ providerMetadata?: {
4741
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4742
+ } | undefined;
4743
+ providerOptions?: {
4744
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4745
+ } | undefined;
4746
+ experimental_providerMetadata?: {
4747
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4748
+ } | undefined;
4749
+ type: 'tool-call';
4750
+ toolCallId: string;
4751
+ toolName: string;
4752
+ args?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4753
+ input?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4754
+ } | {
4755
+ id?: string | undefined;
4756
+ name?: string | undefined;
4757
+ metadata?: {
4758
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4759
+ } | undefined;
4760
+ providerMetadata?: {
4761
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4762
+ } | undefined;
4763
+ providerOptions?: {
4764
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4765
+ } | undefined;
4766
+ experimental_providerMetadata?: {
4767
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4768
+ } | undefined;
4769
+ type: 'tool-result';
4770
+ toolCallId: string;
4771
+ toolName?: string | undefined;
4772
+ result?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4773
+ output?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4774
+ })[] | undefined;
4775
+ createdAt?: (string | Date) | undefined;
4776
+ } | {
4777
+ id: string;
4778
+ role: 'system' | 'user' | 'assistant' | 'signal';
4779
+ createdAt: string | Date;
4780
+ threadId?: string | undefined;
4781
+ resourceId?: string | undefined;
4782
+ type?: string | undefined;
4783
+ content: {
4784
+ format: 2;
4785
+ parts: {
4786
+ type: string;
4787
+ [x: string]: unknown;
4788
+ }[];
4789
+ content?: (string | ({
4790
+ id?: string | undefined;
4791
+ name?: string | undefined;
4792
+ metadata?: {
4793
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4794
+ } | undefined;
4795
+ providerMetadata?: {
4796
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4797
+ } | undefined;
4798
+ providerOptions?: {
4799
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4800
+ } | undefined;
4801
+ experimental_providerMetadata?: {
4802
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4803
+ } | undefined;
4804
+ type: 'text';
4805
+ text: string;
4806
+ } | {
4807
+ id?: string | undefined;
4808
+ name?: string | undefined;
4809
+ metadata?: {
4810
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4811
+ } | undefined;
4812
+ providerMetadata?: {
4813
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4814
+ } | undefined;
4815
+ providerOptions?: {
4816
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4817
+ } | undefined;
4818
+ experimental_providerMetadata?: {
4819
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4820
+ } | undefined;
4821
+ type: 'image';
4822
+ image: string | {
4823
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4824
+ };
4825
+ mediaType?: string | undefined;
4826
+ mimeType?: string | undefined;
4827
+ } | {
4828
+ id?: string | undefined;
4829
+ name?: string | undefined;
4830
+ metadata?: {
4831
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4832
+ } | undefined;
4833
+ providerMetadata?: {
4834
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4835
+ } | undefined;
4836
+ providerOptions?: {
4837
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4838
+ } | undefined;
4839
+ experimental_providerMetadata?: {
4840
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4841
+ } | undefined;
4842
+ type: 'file';
4843
+ data?: (string | {
4844
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4845
+ }) | undefined;
4846
+ file?: (string | {
4847
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4848
+ }) | undefined;
4849
+ url?: string | undefined;
4850
+ mediaType?: string | undefined;
4851
+ mimeType?: string | undefined;
4852
+ filename?: string | undefined;
4853
+ } | {
4854
+ id?: string | undefined;
4855
+ name?: string | undefined;
4856
+ metadata?: {
4857
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4858
+ } | undefined;
4859
+ providerMetadata?: {
4860
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4861
+ } | undefined;
4862
+ providerOptions?: {
4863
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4864
+ } | undefined;
4865
+ experimental_providerMetadata?: {
4866
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4867
+ } | undefined;
4868
+ type: 'tool-call';
4869
+ toolCallId: string;
4870
+ toolName: string;
4871
+ args?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4872
+ input?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4873
+ } | {
4874
+ id?: string | undefined;
4875
+ name?: string | undefined;
4876
+ metadata?: {
4877
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4878
+ } | undefined;
4879
+ providerMetadata?: {
4880
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4881
+ } | undefined;
4882
+ providerOptions?: {
4883
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4884
+ } | undefined;
4885
+ experimental_providerMetadata?: {
4886
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4887
+ } | undefined;
4888
+ type: 'tool-result';
4889
+ toolCallId: string;
4890
+ toolName?: string | undefined;
4891
+ result?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4892
+ output?: PostAgentsAgentIdSignals_Body_Auxiliary_2 | undefined;
4893
+ })[]) | undefined;
4894
+ experimental_attachments?: {
4895
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4896
+ }[] | undefined;
4897
+ toolInvocations?: {
4898
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4899
+ }[] | undefined;
4900
+ reasoning?: string | undefined;
4901
+ annotations?: PostAgentsAgentIdSignals_Body_Auxiliary_2[] | undefined;
4902
+ metadata?: {
4903
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4904
+ } | undefined;
4905
+ providerMetadata?: {
4906
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4907
+ } | undefined;
4908
+ [x: string]: unknown;
4909
+ };
4910
+ })[];
4911
+ } | {
4912
+ id?: string | undefined;
4913
+ createdAt?: (string | Date) | undefined;
4914
+ metadata?: {
4915
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
4916
+ } | undefined;
4917
+ attributes?: {
4918
+ [key: string]: string | number | boolean | null | undefined;
4919
+ } | undefined;
4920
+ type: string;
4921
+ contents: string;
4922
+ };
4923
+ ifActive?: {
4924
+ behavior?: ('deliver' | 'persist' | 'discard') | undefined;
4925
+ } | undefined;
4926
+ runId?: string | undefined;
4927
+ resourceId: string;
4928
+ threadId: string;
4929
+ ifIdle?: {
4930
+ behavior?: ('wake' | 'persist' | 'discard') | undefined;
4931
+ streamOptions?: {
4932
+ instructions?: (string | string[] | any | any[]) | undefined;
4933
+ system?: (string | string[] | any | any[]) | undefined;
4934
+ context?: any[] | undefined;
4935
+ memory?: {
4936
+ thread: string | {
4937
+ id: string;
4938
+ [x: string]: unknown;
4939
+ };
4940
+ resource: string;
4941
+ options?: {
4942
+ [key: string]: any;
4943
+ } | undefined;
4944
+ readOnly?: boolean | undefined;
4945
+ } | undefined;
4946
+ runId?: string | undefined;
4947
+ savePerStep?: boolean | undefined;
4948
+ requestContext?: {
4949
+ [key: string]: any;
4950
+ } | undefined;
4951
+ versions?: {
4952
+ agents?: {
4953
+ [key: string]: {
4954
+ versionId: string;
4955
+ } | {
4956
+ status: 'draft' | 'published';
4957
+ };
4958
+ } | undefined;
4959
+ } | undefined;
4960
+ maxSteps?: number | undefined;
4961
+ stopWhen?: any | undefined;
4962
+ providerOptions?: {
4963
+ anthropic?: {
4964
+ [key: string]: any;
4965
+ } | undefined;
4966
+ google?: {
4967
+ [key: string]: any;
4968
+ } | undefined;
4969
+ openai?: {
4970
+ [key: string]: any;
4971
+ } | undefined;
4972
+ xai?: {
4973
+ [key: string]: any;
4974
+ } | undefined;
4975
+ } | undefined;
4976
+ modelSettings?: any | undefined;
4977
+ activeTools?: string[] | undefined;
4978
+ toolsets?: {
4979
+ [key: string]: any;
4980
+ } | undefined;
4981
+ clientTools?: {
4982
+ [key: string]: any;
4983
+ } | undefined;
4984
+ toolChoice?: (('auto' | 'none' | 'required') | {
4985
+ type: 'tool';
4986
+ toolName: string;
4987
+ }) | undefined;
4988
+ requireToolApproval?: boolean | undefined;
4989
+ scorers?: ({
4990
+ [key: string]: any;
4991
+ } | {
4992
+ [key: string]: {
4993
+ scorer: string;
4994
+ sampling?: any | undefined;
4995
+ };
4996
+ }) | undefined;
4997
+ returnScorerData?: boolean | undefined;
4998
+ tracingOptions?: {
4999
+ metadata?: {
5000
+ [key: string]: unknown;
5001
+ } | undefined;
5002
+ requestContextKeys?: string[] | undefined;
5003
+ traceId?: string | undefined;
5004
+ parentSpanId?: string | undefined;
5005
+ tags?: string[] | undefined;
5006
+ hideInput?: boolean | undefined;
5007
+ hideOutput?: boolean | undefined;
5008
+ } | undefined;
5009
+ output?: any | undefined;
5010
+ structuredOutput?: {
5011
+ schema: {
5012
+ [x: string]: unknown;
5013
+ };
5014
+ model?: (string | any) | undefined;
5015
+ instructions?: string | undefined;
5016
+ jsonPromptInjection?: boolean | undefined;
5017
+ errorStrategy?: ('strict' | 'warn' | 'fallback') | undefined;
5018
+ fallbackValue?: any | undefined;
5019
+ } | undefined;
5020
+ [x: string]: unknown;
5021
+ } | undefined;
5022
+ } | undefined;
5023
+ };
5024
+ export type PostAgentsAgentIdSignals_Response = {
5025
+ accepted: true;
5026
+ runId: string;
5027
+ };
5028
+ export type PostAgentsAgentIdSignals_Request = Simplify<(PostAgentsAgentIdSignals_PathParams extends never ? {} : {
5029
+ params: PostAgentsAgentIdSignals_PathParams;
5030
+ }) & (never extends never ? {} : {} extends never ? {
5031
+ query?: never;
5032
+ } : {
5033
+ query: never;
5034
+ }) & (PostAgentsAgentIdSignals_Body extends never ? {} : {} extends PostAgentsAgentIdSignals_Body ? {
5035
+ body?: PostAgentsAgentIdSignals_Body;
5036
+ } : {
5037
+ body: PostAgentsAgentIdSignals_Body;
5038
+ })>;
5039
+ export interface PostAgentsAgentIdSignals_RouteContract {
5040
+ pathParams: PostAgentsAgentIdSignals_PathParams;
5041
+ queryParams: never;
5042
+ body: PostAgentsAgentIdSignals_Body;
5043
+ request: PostAgentsAgentIdSignals_Request;
5044
+ response: PostAgentsAgentIdSignals_Response;
5045
+ responseType: 'json';
5046
+ }
5047
+ export type PostAgentsAgentIdThreadsSubscribe_PathParams = {
5048
+ /** Unique identifier for the agent */
5049
+ agentId: string;
5050
+ };
5051
+ export type PostAgentsAgentIdThreadsSubscribe_Body = {
5052
+ resourceId?: string | undefined;
5053
+ threadId: string;
5054
+ };
5055
+ export type PostAgentsAgentIdThreadsSubscribe_Response = any;
5056
+ export type PostAgentsAgentIdThreadsSubscribe_Request = Simplify<(PostAgentsAgentIdThreadsSubscribe_PathParams extends never ? {} : {
5057
+ params: PostAgentsAgentIdThreadsSubscribe_PathParams;
5058
+ }) & (never extends never ? {} : {} extends never ? {
5059
+ query?: never;
5060
+ } : {
5061
+ query: never;
5062
+ }) & (PostAgentsAgentIdThreadsSubscribe_Body extends never ? {} : {} extends PostAgentsAgentIdThreadsSubscribe_Body ? {
5063
+ body?: PostAgentsAgentIdThreadsSubscribe_Body;
5064
+ } : {
5065
+ body: PostAgentsAgentIdThreadsSubscribe_Body;
5066
+ })>;
5067
+ export interface PostAgentsAgentIdThreadsSubscribe_RouteContract {
5068
+ pathParams: PostAgentsAgentIdThreadsSubscribe_PathParams;
5069
+ queryParams: never;
5070
+ body: PostAgentsAgentIdThreadsSubscribe_Body;
5071
+ request: PostAgentsAgentIdThreadsSubscribe_Request;
5072
+ response: PostAgentsAgentIdThreadsSubscribe_Response;
5073
+ responseType: 'stream';
5074
+ }
2933
5075
  export type PostAgentsAgentIdToolsToolIdExecute_PathParams = {
2934
5076
  /** Unique identifier for the agent */
2935
5077
  agentId: string;
@@ -5747,7 +7889,7 @@ export type PostProcessorsProcessorIdExecute_Body = {
5747
7889
  phase: 'input' | 'inputStep' | 'outputStream' | 'outputResult' | 'outputStep';
5748
7890
  messages: {
5749
7891
  id: string;
5750
- role: 'user' | 'assistant' | 'system' | 'tool';
7892
+ role: 'user' | 'assistant' | 'system' | 'tool' | 'signal';
5751
7893
  createdAt?: Date | undefined;
5752
7894
  content: {
5753
7895
  format?: 2 | undefined;
@@ -5767,7 +7909,7 @@ export type PostProcessorsProcessorIdExecute_Response = {
5767
7909
  phase: string;
5768
7910
  messages?: {
5769
7911
  id: string;
5770
- role: 'user' | 'assistant' | 'system' | 'tool';
7912
+ role: 'user' | 'assistant' | 'system' | 'tool' | 'signal';
5771
7913
  createdAt?: Date | undefined;
5772
7914
  content: {
5773
7915
  format?: 2 | undefined;
@@ -5780,7 +7922,7 @@ export type PostProcessorsProcessorIdExecute_Response = {
5780
7922
  messageList?: {
5781
7923
  messages: {
5782
7924
  id: string;
5783
- role: 'user' | 'assistant' | 'system' | 'tool';
7925
+ role: 'user' | 'assistant' | 'system' | 'tool' | 'signal';
5784
7926
  createdAt?: Date | undefined;
5785
7927
  content: {
5786
7928
  format?: 2 | undefined;
@@ -41741,6 +43883,8 @@ export interface RouteTypes {
41741
43883
  'POST /agents/:agentId/stream-until-idle': PostAgentsAgentIdStreamUntilIdle_RouteContract;
41742
43884
  'POST /agents/:agentId/stream/vnext': PostAgentsAgentIdStreamVnext_RouteContract;
41743
43885
  'POST /agents/:agentId/observe': PostAgentsAgentIdObserve_RouteContract;
43886
+ 'POST /agents/:agentId/signals': PostAgentsAgentIdSignals_RouteContract;
43887
+ 'POST /agents/:agentId/threads/subscribe': PostAgentsAgentIdThreadsSubscribe_RouteContract;
41744
43888
  'POST /agents/:agentId/tools/:toolId/execute': PostAgentsAgentIdToolsToolIdExecute_RouteContract;
41745
43889
  'POST /agents/:agentId/approve-tool-call': PostAgentsAgentIdApproveToolCall_RouteContract;
41746
43890
  'POST /agents/:agentId/decline-tool-call': PostAgentsAgentIdDeclineToolCall_RouteContract;
@@ -42170,6 +44314,9 @@ export interface Client {
42170
44314
  '/agents/:agentId/resume-stream-until-idle': {
42171
44315
  POST: PostAgentsAgentIdResumeStreamUntilIdle_RouteContract;
42172
44316
  };
44317
+ '/agents/:agentId/signals': {
44318
+ POST: PostAgentsAgentIdSignals_RouteContract;
44319
+ };
42173
44320
  '/agents/:agentId/skills/:skillName': {
42174
44321
  GET: GetAgentsAgentIdSkillsSkillName_RouteContract;
42175
44322
  };
@@ -42200,6 +44347,9 @@ export interface Client {
42200
44347
  '/agents/:agentId/streamVNext': {
42201
44348
  POST: PostAgentsAgentIdStreamVNext_RouteContract;
42202
44349
  };
44350
+ '/agents/:agentId/threads/subscribe': {
44351
+ POST: PostAgentsAgentIdThreadsSubscribe_RouteContract;
44352
+ };
42203
44353
  '/agents/:agentId/tools/:toolId': {
42204
44354
  GET: GetAgentsAgentIdToolsToolId_RouteContract;
42205
44355
  };
@@ -42918,4 +45068,5 @@ export type ClientResponse<P extends ClientPath, M extends ClientMethod<P>> = Cl
42918
45068
  export type ClientResponseKind<P extends ClientPath, M extends ClientMethod<P>> = ClientRoute<P, M> extends {
42919
45069
  responseType: infer ResponseType;
42920
45070
  } ? ResponseType : never;
45071
+ export {};
42921
45072
  //# sourceMappingURL=route-types.generated.d.ts.map