@relayfx/sdk 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/index.js +7437 -3239
  2. package/dist/migrations/20260705003847_nervous_banshee/migration.sql +11 -0
  3. package/dist/migrations/20260705003847_nervous_banshee/snapshot.json +2954 -0
  4. package/dist/migrations/20260705012626_common_stryfe/migration.sql +31 -0
  5. package/dist/migrations/20260705012626_common_stryfe/snapshot.json +3378 -0
  6. package/dist/migrations/20260705015420_sweet_captain_marvel/migration.sql +10 -0
  7. package/dist/migrations/20260705015420_sweet_captain_marvel/snapshot.json +3485 -0
  8. package/dist/migrations/20260705023041_chunky_scalphunter/migration.sql +22 -0
  9. package/dist/migrations/20260705023041_chunky_scalphunter/snapshot.json +3753 -0
  10. package/dist/migrations/20260705030344_short_patriot/migration.sql +11 -0
  11. package/dist/migrations/20260705030344_short_patriot/snapshot.json +3873 -0
  12. package/dist/migrations/20260705045546_heavy_ben_grimm/migration.sql +30 -0
  13. package/dist/migrations/20260705045546_heavy_ben_grimm/snapshot.json +4193 -0
  14. package/dist/types/ai/embedding-model/embedding-model-registration.d.ts +45 -0
  15. package/dist/types/ai/index.d.ts +1 -0
  16. package/dist/types/relay/client.d.ts +20 -4
  17. package/dist/types/relay/index.d.ts +3 -3
  18. package/dist/types/relay/operation.d.ts +242 -1
  19. package/dist/types/runtime/address/address-resolution-service.d.ts +15 -0
  20. package/dist/types/runtime/agent/agent-loop-service.d.ts +39 -5
  21. package/dist/types/runtime/agent/relay-approvals.d.ts +15 -3
  22. package/dist/types/runtime/agent/relay-compaction.d.ts +22 -0
  23. package/dist/types/runtime/agent/relay-instructions.d.ts +22 -0
  24. package/dist/types/runtime/agent/relay-permissions.d.ts +25 -0
  25. package/dist/types/runtime/agent/relay-steering.d.ts +17 -0
  26. package/dist/types/runtime/agent/relay-tool-executor.d.ts +3 -0
  27. package/dist/types/runtime/agent/relay-tool-output.d.ts +7 -0
  28. package/dist/types/runtime/child/spawn-child-run-tool.d.ts +209 -0
  29. package/dist/types/runtime/cluster/execution-entity.d.ts +101 -2
  30. package/dist/types/runtime/execution/event-log-service.d.ts +6 -0
  31. package/dist/types/runtime/execution/execution-service.d.ts +1 -0
  32. package/dist/types/runtime/index.d.ts +9 -0
  33. package/dist/types/runtime/memory/memory-service.d.ts +20 -0
  34. package/dist/types/runtime/model/embedding-model-service.d.ts +68 -0
  35. package/dist/types/runtime/model/model-call-policy.d.ts +30 -11
  36. package/dist/types/runtime/runner/runner-runtime-service.d.ts +41 -21
  37. package/dist/types/runtime/schedule/scheduler-service.d.ts +4 -4
  38. package/dist/types/runtime/session/session-store-service.d.ts +14 -0
  39. package/dist/types/runtime/skill/skill-registry-service.d.ts +44 -0
  40. package/dist/types/runtime/tool/tool-runtime-service.d.ts +5 -0
  41. package/dist/types/runtime/wait/wait-signal.d.ts +2 -1
  42. package/dist/types/runtime/workflow/execution-workflow.d.ts +73 -4
  43. package/dist/types/schema/agent-schema.d.ts +130 -0
  44. package/dist/types/schema/content-schema.d.ts +12 -0
  45. package/dist/types/schema/envelope-schema.d.ts +12 -0
  46. package/dist/types/schema/execution-schema.d.ts +32 -2
  47. package/dist/types/schema/ids-schema.d.ts +16 -0
  48. package/dist/types/schema/index.d.ts +1 -0
  49. package/dist/types/schema/schedule-schema.d.ts +6 -0
  50. package/dist/types/schema/skill-schema.d.ts +260 -0
  51. package/dist/types/schema/tool-schema.d.ts +2 -0
  52. package/dist/types/store-sql/child/child-execution-repository.d.ts +1 -0
  53. package/dist/types/store-sql/compaction/compaction-repository.d.ts +37 -0
  54. package/dist/types/store-sql/execution/execution-repository.d.ts +3 -0
  55. package/dist/types/store-sql/index.d.ts +7 -0
  56. package/dist/types/store-sql/memory/memory-repository.d.ts +50 -0
  57. package/dist/types/store-sql/permission/permission-rule-repository.d.ts +37 -0
  58. package/dist/types/store-sql/schema/relay-schema.d.ts +1039 -8
  59. package/dist/types/store-sql/session/context-epoch-repository.d.ts +33 -0
  60. package/dist/types/store-sql/session/session-repository.d.ts +138 -0
  61. package/dist/types/store-sql/skill/skill-definition-repository.d.ts +71 -0
  62. package/dist/types/store-sql/steering/steering-repository.d.ts +59 -0
  63. package/package.json +3 -3
@@ -1,9 +1,10 @@
1
1
  import { Ids } from "../../schema/index";
2
- import { ExecutionRepository } from "../../store-sql/index";
2
+ import { ChildExecutionRepository, ExecutionRepository } from "../../store-sql/index";
3
3
  import { Workflow } from "effect/unstable/workflow";
4
4
  import { Effect, Layer, Option, Schema } from "effect";
5
5
  import * as AddressResolution from "../address/address-resolution-service";
6
6
  import * as AgentLoop from "../agent/agent-loop-service";
7
+ import * as SkillRegistry from "../skill/skill-registry-service";
7
8
  import * as EventLog from "../execution/event-log-service";
8
9
  import * as ExecutionService from "../execution/execution-service";
9
10
  import * as ToolRuntime from "../tool/tool-runtime-service";
@@ -21,25 +22,32 @@ export declare const StartInput: Schema.Struct<{
21
22
  readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
22
23
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
23
24
  };
25
+ readonly session_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.SessionId"> & {
26
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
27
+ }>;
24
28
  readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
25
29
  readonly type: Schema.Literal<"text">;
26
30
  readonly text: Schema.String;
31
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
27
32
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
28
33
  }>, Schema.Struct<{
29
34
  readonly type: Schema.Literal<"structured">;
30
35
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
31
36
  readonly schema_ref: Schema.optionalKey<Schema.String>;
37
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
32
38
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
33
39
  }>, Schema.Struct<{
34
40
  readonly type: Schema.Literal<"blob-reference">;
35
41
  readonly uri: Schema.String;
36
42
  readonly media_type: Schema.String;
37
43
  readonly filename: Schema.optionalKey<Schema.String>;
44
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
38
45
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
39
46
  }>, Schema.Struct<{
40
47
  readonly type: Schema.Literal<"artifact-reference">;
41
48
  readonly artifact_id: Schema.String;
42
49
  readonly media_type: Schema.optionalKey<Schema.String>;
50
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
43
51
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
44
52
  }>, Schema.Struct<{
45
53
  readonly type: Schema.Literal<"tool-call">;
@@ -51,6 +59,7 @@ export declare const StartInput: Schema.Struct<{
51
59
  readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
52
60
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
53
61
  }>;
62
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
54
63
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
55
64
  }>, Schema.Struct<{
56
65
  readonly type: Schema.Literal<"tool-result">;
@@ -62,6 +71,7 @@ export declare const StartInput: Schema.Struct<{
62
71
  readonly error: Schema.optionalKey<Schema.String>;
63
72
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
64
73
  }>;
74
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
65
75
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
66
76
  }>]>>>;
67
77
  readonly event_sequence: Schema.Int;
@@ -87,6 +97,17 @@ export declare const StartInput: Schema.Struct<{
87
97
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
88
98
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
89
99
  }>>;
100
+ readonly skill_definition_ids: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
101
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
102
+ }>>;
103
+ readonly permission_rules: Schema.optionalKey<Schema.Struct<{
104
+ readonly rules: Schema.$Array<Schema.Struct<{
105
+ readonly pattern: Schema.String;
106
+ readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
107
+ readonly reason: Schema.optionalKey<Schema.String>;
108
+ }>>;
109
+ readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["allow", "deny", "ask"]>>;
110
+ }>>;
90
111
  readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
91
112
  readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
92
113
  readonly token_budget: Schema.optionalKey<Schema.Int>;
@@ -108,12 +129,25 @@ export declare const StartInput: Schema.Struct<{
108
129
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
109
130
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
110
131
  }>>>;
132
+ readonly handoff_targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
133
+ readonly name: Schema.String;
134
+ readonly preset_name: Schema.String;
135
+ }>>>;
111
136
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
112
137
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
113
138
  }>>;
114
139
  readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
115
140
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
116
141
  }>;
142
+ readonly resume_tool_call: Schema.optionalKey<Schema.Struct<{
143
+ readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
144
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
145
+ };
146
+ readonly name: Schema.String;
147
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
148
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
149
+ }>>;
150
+ readonly workflow_generation: Schema.optionalKey<Schema.Int>;
117
151
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
118
152
  }>;
119
153
  export interface StartInput extends Schema.Schema.Type<typeof StartInput> {
@@ -195,25 +229,32 @@ export declare const StartExecutionWorkflow: Workflow.Workflow<"Relay/Execution/
195
229
  readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
196
230
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
197
231
  };
232
+ readonly session_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.SessionId"> & {
233
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
234
+ }>;
198
235
  readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
199
236
  readonly type: Schema.Literal<"text">;
200
237
  readonly text: Schema.String;
238
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
201
239
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
202
240
  }>, Schema.Struct<{
203
241
  readonly type: Schema.Literal<"structured">;
204
242
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
205
243
  readonly schema_ref: Schema.optionalKey<Schema.String>;
244
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
206
245
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
207
246
  }>, Schema.Struct<{
208
247
  readonly type: Schema.Literal<"blob-reference">;
209
248
  readonly uri: Schema.String;
210
249
  readonly media_type: Schema.String;
211
250
  readonly filename: Schema.optionalKey<Schema.String>;
251
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
212
252
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
213
253
  }>, Schema.Struct<{
214
254
  readonly type: Schema.Literal<"artifact-reference">;
215
255
  readonly artifact_id: Schema.String;
216
256
  readonly media_type: Schema.optionalKey<Schema.String>;
257
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
217
258
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
218
259
  }>, Schema.Struct<{
219
260
  readonly type: Schema.Literal<"tool-call">;
@@ -225,6 +266,7 @@ export declare const StartExecutionWorkflow: Workflow.Workflow<"Relay/Execution/
225
266
  readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
226
267
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
227
268
  }>;
269
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
228
270
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
229
271
  }>, Schema.Struct<{
230
272
  readonly type: Schema.Literal<"tool-result">;
@@ -236,6 +278,7 @@ export declare const StartExecutionWorkflow: Workflow.Workflow<"Relay/Execution/
236
278
  readonly error: Schema.optionalKey<Schema.String>;
237
279
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
238
280
  }>;
281
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
239
282
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
240
283
  }>]>>>;
241
284
  readonly event_sequence: Schema.Int;
@@ -261,6 +304,17 @@ export declare const StartExecutionWorkflow: Workflow.Workflow<"Relay/Execution/
261
304
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
262
305
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
263
306
  }>>;
307
+ readonly skill_definition_ids: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
308
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
309
+ }>>;
310
+ readonly permission_rules: Schema.optionalKey<Schema.Struct<{
311
+ readonly rules: Schema.$Array<Schema.Struct<{
312
+ readonly pattern: Schema.String;
313
+ readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
314
+ readonly reason: Schema.optionalKey<Schema.String>;
315
+ }>>;
316
+ readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["allow", "deny", "ask"]>>;
317
+ }>>;
264
318
  readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
265
319
  readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
266
320
  readonly token_budget: Schema.optionalKey<Schema.Int>;
@@ -282,12 +336,25 @@ export declare const StartExecutionWorkflow: Workflow.Workflow<"Relay/Execution/
282
336
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
283
337
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
284
338
  }>>>;
339
+ readonly handoff_targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
340
+ readonly name: Schema.String;
341
+ readonly preset_name: Schema.String;
342
+ }>>>;
285
343
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
286
344
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
287
345
  }>>;
288
346
  readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
289
347
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
290
348
  }>;
349
+ readonly resume_tool_call: Schema.optionalKey<Schema.Struct<{
350
+ readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
351
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
352
+ };
353
+ readonly name: Schema.String;
354
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
355
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
356
+ }>>;
357
+ readonly workflow_generation: Schema.optionalKey<Schema.Int>;
291
358
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
292
359
  }>, Schema.Struct<{
293
360
  readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
@@ -300,7 +367,8 @@ export declare const StartExecutionWorkflow: Workflow.Workflow<"Relay/Execution/
300
367
  readonly wait_state: Schema.optionalKey<Schema.Literals<readonly ["resolved", "timed_out", "cancelled"]>>;
301
368
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
302
369
  }>, typeof ExecutionWorkflowFailed>;
303
- export declare const layer: Layer.Layer<never, never, ExecutionRepository.Service | AddressResolution.Service | EventLog.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ExecutionService.Service | WorkspacePlanner.Service | import("effect/unstable/workflow/WorkflowEngine").WorkflowEngine>;
370
+ export declare const sessionEntryScope: (input: StartInput, turn: number) => string;
371
+ export declare const layer: Layer.Layer<never, never, ChildExecutionRepository.Service | ExecutionRepository.Service | AddressResolution.Service | EventLog.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | SkillRegistry.Service | ExecutionService.Service | WorkspacePlanner.Service | import("effect/unstable/workflow/WorkflowEngine").WorkflowEngine>;
304
372
  export declare const start: <const Discard extends boolean = false>(input: StartInput, options?: {
305
373
  readonly discard?: Discard;
306
374
  }) => Effect.Effect<Discard extends true ? string : {
@@ -324,7 +392,7 @@ export declare const startRequest: (input: StartInput) => Effect.Effect<{
324
392
  export declare const cancelRequest: (input: CancelExecutionInput) => Effect.Effect<{
325
393
  execution_id: string & import("effect/Brand").Brand<"Relay.ExecutionId">;
326
394
  status: "queued" | "running" | "waiting" | "completed" | "failed" | "cancelled";
327
- }, ExecutionWorkflowFailed, ExecutionRepository.Service | EventLog.Service | WaitService.Service | import("effect/unstable/workflow/WorkflowEngine").WorkflowEngine>;
395
+ }, ExecutionWorkflowFailed, ChildExecutionRepository.Service | ExecutionRepository.Service | EventLog.Service | WaitService.Service | import("effect/unstable/workflow/WorkflowEngine").WorkflowEngine>;
328
396
  export declare const poll: (executionId: string) => Effect.Effect<Option.Option<Workflow.Result<{
329
397
  readonly execution_id: string & import("effect/Brand").Brand<"Relay.ExecutionId">;
330
398
  readonly status: "queued" | "running" | "waiting" | "completed" | "failed" | "cancelled";
@@ -336,6 +404,7 @@ export declare const poll: (executionId: string) => Effect.Effect<Option.Option<
336
404
  }, ExecutionWorkflowFailed>>, never, import("effect/unstable/workflow/WorkflowEngine").WorkflowEngine>;
337
405
  export declare const resume: (executionId: string) => Effect.Effect<void, never, import("effect/unstable/workflow/WorkflowEngine").WorkflowEngine>;
338
406
  export declare const workflowExecutionId: (input: StartInput) => Effect.Effect<string, never, never>;
339
- export declare const workflowExecutionIdForExecution: (executionId: Ids.ExecutionId) => Effect.Effect<string, never, never>;
407
+ export declare const workflowExecutionIdForExecution: (executionId: Ids.ExecutionId, workflowGeneration?: number) => Effect.Effect<string, never, never>;
408
+ export declare const activeWorkflowExecutionIdForExecution: (executionId: string & import("effect/Brand").Brand<"Relay.ExecutionId">) => Effect.Effect<string, ExecutionWorkflowFailed, ExecutionRepository.Service>;
340
409
  export declare const signalWait: (input: SignalWaitInput) => Effect.Effect<void, never, import("effect/unstable/workflow/WorkflowEngine").WorkflowEngine>;
341
410
  export {};
@@ -36,6 +36,31 @@ export declare const ChildRunPreset: Schema.Struct<{
36
36
  }>;
37
37
  export interface ChildRunPreset extends Schema.Schema.Type<typeof ChildRunPreset> {
38
38
  }
39
+ export declare const HandoffTarget: Schema.Struct<{
40
+ readonly name: Schema.String;
41
+ readonly preset_name: Schema.String;
42
+ }>;
43
+ export interface HandoffTarget extends Schema.Schema.Type<typeof HandoffTarget> {
44
+ }
45
+ export declare const PermissionLevel: Schema.Literals<readonly ["allow", "deny", "ask"]>;
46
+ export type PermissionLevel = typeof PermissionLevel.Type;
47
+ export declare const PermissionRule: Schema.Struct<{
48
+ readonly pattern: Schema.String;
49
+ readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
50
+ readonly reason: Schema.optionalKey<Schema.String>;
51
+ }>;
52
+ export interface PermissionRule extends Schema.Schema.Type<typeof PermissionRule> {
53
+ }
54
+ export declare const PermissionRuleset: Schema.Struct<{
55
+ readonly rules: Schema.$Array<Schema.Struct<{
56
+ readonly pattern: Schema.String;
57
+ readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
58
+ readonly reason: Schema.optionalKey<Schema.String>;
59
+ }>>;
60
+ readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["allow", "deny", "ask"]>>;
61
+ }>;
62
+ export interface PermissionRuleset extends Schema.Schema.Type<typeof PermissionRuleset> {
63
+ }
39
64
  /**
40
65
  * Default per-`AgentLoop.run` tool-turn budget when `max_tool_turns` is absent.
41
66
  * Preserves pre-configuration behavior bit-for-bit.
@@ -62,6 +87,17 @@ export declare const Definition: Schema.Struct<{
62
87
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
63
88
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
64
89
  }>>;
90
+ readonly skill_definition_ids: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
91
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
92
+ }>>;
93
+ readonly permission_rules: Schema.optionalKey<Schema.Struct<{
94
+ readonly rules: Schema.$Array<Schema.Struct<{
95
+ readonly pattern: Schema.String;
96
+ readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
97
+ readonly reason: Schema.optionalKey<Schema.String>;
98
+ }>>;
99
+ readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["allow", "deny", "ask"]>>;
100
+ }>>;
65
101
  readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
66
102
  readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
67
103
  readonly token_budget: Schema.optionalKey<Schema.Int>;
@@ -83,6 +119,10 @@ export declare const Definition: Schema.Struct<{
83
119
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
84
120
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
85
121
  }>>>;
122
+ readonly handoff_targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
123
+ readonly name: Schema.String;
124
+ readonly preset_name: Schema.String;
125
+ }>>>;
86
126
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
87
127
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
88
128
  }>;
@@ -109,6 +149,17 @@ export declare const DefinitionRecord: Schema.Struct<{
109
149
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
110
150
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
111
151
  }>>;
152
+ readonly skill_definition_ids: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
153
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
154
+ }>>;
155
+ readonly permission_rules: Schema.optionalKey<Schema.Struct<{
156
+ readonly rules: Schema.$Array<Schema.Struct<{
157
+ readonly pattern: Schema.String;
158
+ readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
159
+ readonly reason: Schema.optionalKey<Schema.String>;
160
+ }>>;
161
+ readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["allow", "deny", "ask"]>>;
162
+ }>>;
112
163
  readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
113
164
  readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
114
165
  readonly token_budget: Schema.optionalKey<Schema.Int>;
@@ -130,6 +181,10 @@ export declare const DefinitionRecord: Schema.Struct<{
130
181
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
131
182
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
132
183
  }>>>;
184
+ readonly handoff_targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
185
+ readonly name: Schema.String;
186
+ readonly preset_name: Schema.String;
187
+ }>>>;
133
188
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
134
189
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
135
190
  }>;
@@ -159,6 +214,17 @@ export declare const DefinitionRevisionRecord: Schema.Struct<{
159
214
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
160
215
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
161
216
  }>>;
217
+ readonly skill_definition_ids: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
218
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
219
+ }>>;
220
+ readonly permission_rules: Schema.optionalKey<Schema.Struct<{
221
+ readonly rules: Schema.$Array<Schema.Struct<{
222
+ readonly pattern: Schema.String;
223
+ readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
224
+ readonly reason: Schema.optionalKey<Schema.String>;
225
+ }>>;
226
+ readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["allow", "deny", "ask"]>>;
227
+ }>>;
162
228
  readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
163
229
  readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
164
230
  readonly token_budget: Schema.optionalKey<Schema.Int>;
@@ -180,6 +246,10 @@ export declare const DefinitionRevisionRecord: Schema.Struct<{
180
246
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
181
247
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
182
248
  }>>>;
249
+ readonly handoff_targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
250
+ readonly name: Schema.String;
251
+ readonly preset_name: Schema.String;
252
+ }>>>;
183
253
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
184
254
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
185
255
  }>;
@@ -207,6 +277,17 @@ export declare const RegisterDefinitionPayload: Schema.Struct<{
207
277
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
208
278
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
209
279
  }>>;
280
+ readonly skill_definition_ids: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
281
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
282
+ }>>;
283
+ readonly permission_rules: Schema.optionalKey<Schema.Struct<{
284
+ readonly rules: Schema.$Array<Schema.Struct<{
285
+ readonly pattern: Schema.String;
286
+ readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
287
+ readonly reason: Schema.optionalKey<Schema.String>;
288
+ }>>;
289
+ readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["allow", "deny", "ask"]>>;
290
+ }>>;
210
291
  readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
211
292
  readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
212
293
  readonly token_budget: Schema.optionalKey<Schema.Int>;
@@ -228,6 +309,10 @@ export declare const RegisterDefinitionPayload: Schema.Struct<{
228
309
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
229
310
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
230
311
  }>>>;
312
+ readonly handoff_targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
313
+ readonly name: Schema.String;
314
+ readonly preset_name: Schema.String;
315
+ }>>>;
231
316
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
232
317
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
233
318
  }>;
@@ -256,6 +341,17 @@ export declare const DefinitionRegistered: Schema.Struct<{
256
341
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
257
342
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
258
343
  }>>;
344
+ readonly skill_definition_ids: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
345
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
346
+ }>>;
347
+ readonly permission_rules: Schema.optionalKey<Schema.Struct<{
348
+ readonly rules: Schema.$Array<Schema.Struct<{
349
+ readonly pattern: Schema.String;
350
+ readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
351
+ readonly reason: Schema.optionalKey<Schema.String>;
352
+ }>>;
353
+ readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["allow", "deny", "ask"]>>;
354
+ }>>;
259
355
  readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
260
356
  readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
261
357
  readonly token_budget: Schema.optionalKey<Schema.Int>;
@@ -277,6 +373,10 @@ export declare const DefinitionRegistered: Schema.Struct<{
277
373
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
278
374
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
279
375
  }>>>;
376
+ readonly handoff_targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
377
+ readonly name: Schema.String;
378
+ readonly preset_name: Schema.String;
379
+ }>>>;
280
380
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
281
381
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
282
382
  }>;
@@ -308,6 +408,17 @@ export declare const DefinitionList: Schema.Struct<{
308
408
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
309
409
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
310
410
  }>>;
411
+ readonly skill_definition_ids: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
412
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
413
+ }>>;
414
+ readonly permission_rules: Schema.optionalKey<Schema.Struct<{
415
+ readonly rules: Schema.$Array<Schema.Struct<{
416
+ readonly pattern: Schema.String;
417
+ readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
418
+ readonly reason: Schema.optionalKey<Schema.String>;
419
+ }>>;
420
+ readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["allow", "deny", "ask"]>>;
421
+ }>>;
311
422
  readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
312
423
  readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
313
424
  readonly token_budget: Schema.optionalKey<Schema.Int>;
@@ -329,6 +440,10 @@ export declare const DefinitionList: Schema.Struct<{
329
440
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
330
441
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
331
442
  }>>>;
443
+ readonly handoff_targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
444
+ readonly name: Schema.String;
445
+ readonly preset_name: Schema.String;
446
+ }>>>;
332
447
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
333
448
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
334
449
  }>;
@@ -360,6 +475,17 @@ export declare const DefinitionRevisionList: Schema.Struct<{
360
475
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
361
476
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
362
477
  }>>;
478
+ readonly skill_definition_ids: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
479
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
480
+ }>>;
481
+ readonly permission_rules: Schema.optionalKey<Schema.Struct<{
482
+ readonly rules: Schema.$Array<Schema.Struct<{
483
+ readonly pattern: Schema.String;
484
+ readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
485
+ readonly reason: Schema.optionalKey<Schema.String>;
486
+ }>>;
487
+ readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["allow", "deny", "ask"]>>;
488
+ }>>;
363
489
  readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
364
490
  readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
365
491
  readonly token_budget: Schema.optionalKey<Schema.Int>;
@@ -381,6 +507,10 @@ export declare const DefinitionRevisionList: Schema.Struct<{
381
507
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
382
508
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
383
509
  }>>>;
510
+ readonly handoff_targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
511
+ readonly name: Schema.String;
512
+ readonly preset_name: Schema.String;
513
+ }>>>;
384
514
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
385
515
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
386
516
  }>;
@@ -2,6 +2,7 @@ import { Schema } from "effect";
2
2
  export declare const TextPart: Schema.Struct<{
3
3
  readonly type: Schema.Literal<"text">;
4
4
  readonly text: Schema.String;
5
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
5
6
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
6
7
  }>;
7
8
  export interface TextPart extends Schema.Schema.Type<typeof TextPart> {
@@ -10,6 +11,7 @@ export declare const StructuredPart: Schema.Struct<{
10
11
  readonly type: Schema.Literal<"structured">;
11
12
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
12
13
  readonly schema_ref: Schema.optionalKey<Schema.String>;
14
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
13
15
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
14
16
  }>;
15
17
  export interface StructuredPart extends Schema.Schema.Type<typeof StructuredPart> {
@@ -19,6 +21,7 @@ export declare const BlobReferencePart: Schema.Struct<{
19
21
  readonly uri: Schema.String;
20
22
  readonly media_type: Schema.String;
21
23
  readonly filename: Schema.optionalKey<Schema.String>;
24
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
22
25
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
23
26
  }>;
24
27
  export interface BlobReferencePart extends Schema.Schema.Type<typeof BlobReferencePart> {
@@ -27,6 +30,7 @@ export declare const ArtifactReferencePart: Schema.Struct<{
27
30
  readonly type: Schema.Literal<"artifact-reference">;
28
31
  readonly artifact_id: Schema.String;
29
32
  readonly media_type: Schema.optionalKey<Schema.String>;
33
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
30
34
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
31
35
  }>;
32
36
  export interface ArtifactReferencePart extends Schema.Schema.Type<typeof ArtifactReferencePart> {
@@ -41,6 +45,7 @@ export declare const ToolCallPart: Schema.Struct<{
41
45
  readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
42
46
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
43
47
  }>;
48
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
44
49
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
45
50
  }>;
46
51
  export interface ToolCallPart extends Schema.Schema.Type<typeof ToolCallPart> {
@@ -55,6 +60,7 @@ export declare const ToolResultPart: Schema.Struct<{
55
60
  readonly error: Schema.optionalKey<Schema.String>;
56
61
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
57
62
  }>;
63
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
58
64
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
59
65
  }>;
60
66
  export interface ToolResultPart extends Schema.Schema.Type<typeof ToolResultPart> {
@@ -63,22 +69,26 @@ export type Part = TextPart | StructuredPart | BlobReferencePart | ArtifactRefer
63
69
  export declare const Part: Schema.Union<readonly [Schema.Struct<{
64
70
  readonly type: Schema.Literal<"text">;
65
71
  readonly text: Schema.String;
72
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
66
73
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
67
74
  }>, Schema.Struct<{
68
75
  readonly type: Schema.Literal<"structured">;
69
76
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
70
77
  readonly schema_ref: Schema.optionalKey<Schema.String>;
78
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
71
79
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
72
80
  }>, Schema.Struct<{
73
81
  readonly type: Schema.Literal<"blob-reference">;
74
82
  readonly uri: Schema.String;
75
83
  readonly media_type: Schema.String;
76
84
  readonly filename: Schema.optionalKey<Schema.String>;
85
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
77
86
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
78
87
  }>, Schema.Struct<{
79
88
  readonly type: Schema.Literal<"artifact-reference">;
80
89
  readonly artifact_id: Schema.String;
81
90
  readonly media_type: Schema.optionalKey<Schema.String>;
91
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
82
92
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
83
93
  }>, Schema.Struct<{
84
94
  readonly type: Schema.Literal<"tool-call">;
@@ -90,6 +100,7 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
90
100
  readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
91
101
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
92
102
  }>;
103
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
93
104
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
94
105
  }>, Schema.Struct<{
95
106
  readonly type: Schema.Literal<"tool-result">;
@@ -101,6 +112,7 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
101
112
  readonly error: Schema.optionalKey<Schema.String>;
102
113
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
103
114
  }>;
115
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
104
116
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
105
117
  }>]>;
106
118
  export declare const text: (value: string) => TextPart;