@relayfx/sdk 0.0.1 → 0.0.2

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.
@@ -3,7 +3,7 @@ export * as Client from "./client";
3
3
  export * as Database from "./database";
4
4
  export * as Operation from "./operation";
5
5
  export { Address, Agent, Content, Envelope, Execution, Ids, Schedule, Shared, Tool } from "../schema/index";
6
- export { AddressBook, AddressResolution, AgentLoop, AgentRegistry, ArtifactStore, BlobStore, ChildRunService, EnvelopeService, EventLog, ExecutionEntity, ExecutionService, ExecutionWorkflow, LanguageModelService, ModelCallPolicy, PromptAssembler, SchedulerService, ToolRuntime, WaitService, } from "../runtime/index";
6
+ export { AddressBook, AddressResolution, AgentLoop, AgentRegistry, ArtifactStore, BlobStore, ChildRunService, EnvelopeService, EventLog, ExecutionEntity, ExecutionService, ExecutionWorkflow, LanguageModelService, ModelCallPolicy, PromptAssembler, SchedulerService, SchemaRegistry, ToolRuntime, WaitService, } from "../runtime/index";
7
7
  export { RunnerRuntime } from "../runtime/index";
8
8
  export { LanguageModelRegistration } from "../ai/index";
9
9
  export { RelaySchema } from "../store-sql/index";
@@ -72,6 +72,8 @@ export declare const StartExecutionInput: Schema.Struct<{
72
72
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
73
73
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
74
74
  }>>;
75
+ readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
76
+ readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
75
77
  readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
76
78
  readonly instructions: Schema.optionalKey<Schema.String>;
77
79
  readonly model: Schema.optionalKey<Schema.Struct<{
@@ -838,7 +840,7 @@ export declare const ReplayExecutionResult: Schema.Struct<{
838
840
  readonly child_execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
839
841
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
840
842
  }>;
841
- readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.output.completed", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
843
+ readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.output.completed", "model.usage.reported", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
842
844
  readonly sequence: Schema.Int;
843
845
  readonly cursor: Schema.String;
844
846
  readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
@@ -70,6 +70,8 @@ export declare const LocalAgentTarget: Schema.Struct<{
70
70
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
71
71
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
72
72
  }>>;
73
+ readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
74
+ readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
73
75
  readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
74
76
  readonly instructions: Schema.optionalKey<Schema.String>;
75
77
  readonly model: Schema.optionalKey<Schema.Struct<{
@@ -5,6 +5,7 @@ import * as EventLog from "../execution/event-log-service";
5
5
  import * as LanguageModelService from "../model/language-model-service";
6
6
  import * as ModelCallPolicy from "../model/model-call-policy";
7
7
  import * as PromptAssembler from "./prompt-assembler-service";
8
+ import * as SchemaRegistry from "../schema-registry/schema-registry-service";
8
9
  import * as ToolRuntime from "../tool/tool-runtime-service";
9
10
  declare const AgentLoopError_base: Schema.Class<AgentLoopError, Schema.TaggedStruct<"AgentLoopError", {
10
11
  readonly message: Schema.String;
@@ -47,7 +48,15 @@ export interface Interface {
47
48
  declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/AgentLoop", Interface>;
48
49
  export declare class Service extends Service_base {
49
50
  }
50
- export declare const layer: Layer.Layer<Service, never, AgentChatRepository.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | PromptAssembler.Service | ToolRuntime.Service>;
51
+ /**
52
+ * Prompt for the terminal structured turn. The `Chat` already holds the full
53
+ * conversation history (system message, user input, and every tool result), so
54
+ * this single instruction is enough to elicit the typed final output.
55
+ *
56
+ * @experimental
57
+ */
58
+ export declare const STRUCTURED_TURN_PROMPT = "Return the final structured output for the task above.";
59
+ export declare const layer: Layer.Layer<Service, never, AgentChatRepository.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | PromptAssembler.Service | SchemaRegistry.Service | ToolRuntime.Service>;
51
60
  export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
52
61
  export declare const run: (input: RunInput) => Effect.Effect<RunResult, AgentLoopError | AgentLoopWaitRequested, Service>;
53
62
  export {};
@@ -80,6 +80,8 @@ export declare const Start: Rpc.Rpc<"start", Schema.Struct<{
80
80
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
81
81
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
82
82
  }>>;
83
+ readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
84
+ readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
83
85
  readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
84
86
  readonly instructions: Schema.optionalKey<Schema.String>;
85
87
  readonly model: Schema.optionalKey<Schema.Struct<{
@@ -209,6 +211,8 @@ export declare const entity: Entity.Entity<"Relay/Execution", Rpc.Rpc<"start", S
209
211
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
210
212
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
211
213
  }>>;
214
+ readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
215
+ readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
212
216
  readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
213
217
  readonly instructions: Schema.optionalKey<Schema.String>;
214
218
  readonly model: Schema.optionalKey<Schema.Struct<{
@@ -337,6 +341,8 @@ export declare const client: Effect.Effect<(entityId: string) => import("effect/
337
341
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
338
342
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
339
343
  }>>;
344
+ readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
345
+ readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
340
346
  readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
341
347
  readonly instructions: Schema.optionalKey<Schema.String>;
342
348
  readonly model: Schema.optionalKey<Schema.Struct<{
@@ -15,6 +15,7 @@ export * as ParentNotifier from "./child/parent-notifier-service";
15
15
  export * as PromptAssembler from "./agent/prompt-assembler-service";
16
16
  export * as RunnerRuntime from "./runner/runner-runtime-service";
17
17
  export * as SchedulerService from "./schedule/scheduler-service";
18
+ export * as SchemaRegistry from "./schema-registry/schema-registry-service";
18
19
  export * as ToolRuntime from "./tool/tool-runtime-service";
19
20
  export * as WaitService from "./wait/wait-service";
20
21
  export * as WaitSignal from "./wait/wait-signal";
@@ -1,9 +1,19 @@
1
- export declare const recordExecutionAccepted: import("effect/Effect").Effect<void, never, never>;
2
- export declare const recordExecutionFinished: (status: string) => import("effect/Effect").Effect<void, never, never>;
3
- export declare const recordEnvelopeSent: (routeKind: string) => import("effect/Effect").Effect<void, never, never>;
4
- export declare const recordWaitTransitioned: (state: string) => import("effect/Effect").Effect<void, never, never>;
5
- export declare const recordChildRunSpawned: (kind: string) => import("effect/Effect").Effect<void, never, never>;
6
- export declare const recordAddressResolved: (routeKind: string) => import("effect/Effect").Effect<void, never, never>;
7
- export declare const recordEventAppended: (eventType: string) => import("effect/Effect").Effect<void, never, never>;
8
- export declare const recordEventReplayed: (source: string, count: number) => import("effect/Effect").Effect<void, never, never>;
9
- export declare const recordRunnerReadinessChecked: (database: string) => import("effect/Effect").Effect<void, never, never>;
1
+ import { Effect } from "effect";
2
+ export declare const recordExecutionAccepted: Effect.Effect<void, never, never>;
3
+ export declare const recordExecutionFinished: (status: string) => Effect.Effect<void, never, never>;
4
+ export declare const recordEnvelopeSent: (routeKind: string) => Effect.Effect<void, never, never>;
5
+ export declare const recordWaitTransitioned: (state: string) => Effect.Effect<void, never, never>;
6
+ export declare const recordChildRunSpawned: (kind: string) => Effect.Effect<void, never, never>;
7
+ export declare const recordAddressResolved: (routeKind: string) => Effect.Effect<void, never, never>;
8
+ export declare const recordEventAppended: (eventType: string) => Effect.Effect<void, never, never>;
9
+ export declare const recordEventReplayed: (source: string, count: number) => Effect.Effect<void, never, never>;
10
+ export declare const recordRunnerReadinessChecked: (database: string) => Effect.Effect<void, never, never>;
11
+ export declare const recordModelUsage: (input: {
12
+ readonly provider: string;
13
+ readonly model: string;
14
+ readonly finishReason: string;
15
+ readonly inputTokens: number;
16
+ readonly outputTokens: number;
17
+ }) => Effect.Effect<void, never, never>;
18
+ export declare const recordToolCall: (tool: string, outcome: "success" | "failure" | "denied" | "wait") => Effect.Effect<void, never, never>;
19
+ export declare const recordExecutionDuration: (status: string, durationMillis: number) => Effect.Effect<void, never, never>;
@@ -16,6 +16,7 @@ import * as ModelCallPolicy from "../model/model-call-policy";
16
16
  import * as ParentNotifier from "../child/parent-notifier-service";
17
17
  import * as PromptAssembler from "../agent/prompt-assembler-service";
18
18
  import * as SchedulerService from "../schedule/scheduler-service";
19
+ import * as SchemaRegistry from "../schema-registry/schema-registry-service";
19
20
  import * as ToolRuntime from "../tool/tool-runtime-service";
20
21
  import * as WaitService from "../wait/wait-service";
21
22
  import * as WorkspacePlanner from "../workspace/workspace-planner-service";
@@ -79,7 +80,8 @@ export declare const layerWith: <CheckError, CheckIn, ClusterOut, ClusterError,
79
80
  readonly promptAssemblerLayer?: Layer.Layer<PromptAssembler.Service> | undefined;
80
81
  readonly blobStoreLayer?: Layer.Layer<BlobStore.Service> | undefined;
81
82
  readonly artifactStoreLayer?: Layer.Layer<ArtifactStore.Service> | undefined;
82
- }) => Layer.Layer<AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | ModelCallPolicy.Service | PromptAssembler.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | SchedulerService.Service | Service | ClusterOut | RepositoryOut | LanguageModelOut, CheckError | ClusterError | RepositoryError | LanguageModelError | ToolRuntimeError | SchedulerError, RepositoryIn | Exclude<ClusterIn, RepositoryOut> | Exclude<Exclude<Sharding.Sharding, ClusterOut>, RepositoryOut> | Exclude<Exclude<MessageStorage.MessageStorage, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<LanguageModelIn, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<AddressBookRepository.Service, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<AgentChatRepository.Service, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<AgentDefinitionRepository.Service, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<ChildExecutionRepository.Service, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<EnvelopeRepository.Service, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<ExecutionEventRepository.Service, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<ExecutionRepository.Service, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<ScheduleRepository.Service, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<WorkspaceLeaseRepository.Service, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<LanguageModelService.Service, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<ShardingConfig.ShardingConfig, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<WorkflowEngine.WorkflowEngine, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<Sharding.Sharding, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<CheckIn, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, ModelCallPolicy.Service>, PromptAssembler.Service>, WaitService.Service>, EventLog.Service>, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<Exclude<SchedulerIn, AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | ModelCallPolicy.Service | PromptAssembler.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | WorkspacePlanner.Service>, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>>;
83
+ readonly schemaRegistryLayer?: Layer.Layer<SchemaRegistry.Service> | undefined;
84
+ }) => Layer.Layer<AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | ModelCallPolicy.Service | PromptAssembler.Service | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | SchedulerService.Service | Service | ClusterOut | RepositoryOut | LanguageModelOut, CheckError | ClusterError | RepositoryError | LanguageModelError | ToolRuntimeError | SchedulerError, RepositoryIn | Exclude<ClusterIn, RepositoryOut> | Exclude<Exclude<Sharding.Sharding, ClusterOut>, RepositoryOut> | Exclude<Exclude<MessageStorage.MessageStorage, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<LanguageModelIn, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<AddressBookRepository.Service, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<AgentChatRepository.Service, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<AgentDefinitionRepository.Service, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<ChildExecutionRepository.Service, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<EnvelopeRepository.Service, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<ExecutionEventRepository.Service, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<ExecutionRepository.Service, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<ScheduleRepository.Service, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<WorkspaceLeaseRepository.Service, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<LanguageModelService.Service, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<ShardingConfig.ShardingConfig, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<WorkflowEngine.WorkflowEngine, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<Sharding.Sharding, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<CheckIn, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, ModelCallPolicy.Service>, PromptAssembler.Service>, SchemaRegistry.Service>, WaitService.Service>, EventLog.Service>, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<Exclude<SchedulerIn, AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | ModelCallPolicy.Service | PromptAssembler.Service | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | WorkspacePlanner.Service>, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>>;
83
85
  export declare const layerWithClient: <CheckError, CheckIn, ClusterOut, ClusterError, ClusterIn, RepositoryOut, RepositoryError, RepositoryIn, LanguageModelOut, LanguageModelError, LanguageModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
84
86
  readonly checkLayer: Layer.Layer<Service, CheckError, CheckIn>;
85
87
  readonly clusterLayer: Layer.Layer<ClusterOut, ClusterError, ClusterIn>;
@@ -89,7 +91,8 @@ export declare const layerWithClient: <CheckError, CheckIn, ClusterOut, ClusterE
89
91
  readonly promptAssemblerLayer?: Layer.Layer<PromptAssembler.Service> | undefined;
90
92
  readonly blobStoreLayer?: Layer.Layer<BlobStore.Service> | undefined;
91
93
  readonly artifactStoreLayer?: Layer.Layer<ArtifactStore.Service> | undefined;
92
- }) => Layer.Layer<AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | ModelCallPolicy.Service | PromptAssembler.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | WorkspacePlanner.Service | Service | ClusterOut | RepositoryOut | LanguageModelOut, CheckError | ClusterError | RepositoryError | LanguageModelError | ToolRuntimeError, RepositoryIn | Exclude<ClusterIn, RepositoryOut> | Exclude<Exclude<LanguageModelIn, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<AddressBookRepository.Service, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<AgentChatRepository.Service, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<AgentDefinitionRepository.Service, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<ChildExecutionRepository.Service, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<EnvelopeRepository.Service, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<ExecutionEventRepository.Service, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<ExecutionRepository.Service, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<ScheduleRepository.Service, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<WorkspaceLeaseRepository.Service, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<LanguageModelService.Service, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<ShardingConfig.ShardingConfig, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Sharding.Sharding, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<CheckIn, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, ModelCallPolicy.Service>, PromptAssembler.Service>, WaitService.Service>, EventLog.Service>, LanguageModelOut>, ClusterOut>, RepositoryOut>>;
94
+ readonly schemaRegistryLayer?: Layer.Layer<SchemaRegistry.Service> | undefined;
95
+ }) => Layer.Layer<AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | ModelCallPolicy.Service | PromptAssembler.Service | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | WorkspacePlanner.Service | Service | ClusterOut | RepositoryOut | LanguageModelOut, CheckError | ClusterError | RepositoryError | LanguageModelError | ToolRuntimeError, RepositoryIn | Exclude<ClusterIn, RepositoryOut> | Exclude<Exclude<LanguageModelIn, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<AddressBookRepository.Service, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<AgentChatRepository.Service, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<AgentDefinitionRepository.Service, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<ChildExecutionRepository.Service, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<EnvelopeRepository.Service, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<ExecutionEventRepository.Service, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<ExecutionRepository.Service, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<ScheduleRepository.Service, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<WorkspaceLeaseRepository.Service, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<LanguageModelService.Service, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<ShardingConfig.ShardingConfig, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Sharding.Sharding, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<CheckIn, LanguageModelOut>, ClusterOut>, RepositoryOut> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, ModelCallPolicy.Service>, PromptAssembler.Service>, SchemaRegistry.Service>, WaitService.Service>, EventLog.Service>, LanguageModelOut>, ClusterOut>, RepositoryOut>>;
93
96
  export declare const layerWithServices: <DatabaseError, DatabaseIn, LanguageModelError, LanguageModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
94
97
  readonly databaseLayer: Layer.Layer<Database.Service, DatabaseError, DatabaseIn>;
95
98
  readonly languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>;
@@ -97,7 +100,8 @@ export declare const layerWithServices: <DatabaseError, DatabaseIn, LanguageMode
97
100
  readonly promptAssemblerLayer?: Layer.Layer<PromptAssembler.Service> | undefined;
98
101
  readonly blobStoreLayer?: Layer.Layer<BlobStore.Service> | undefined;
99
102
  readonly artifactStoreLayer?: Layer.Layer<ArtifactStore.Service> | undefined;
100
- }) => Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | PromptAssembler.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage, Config.ConfigError | DatabaseError | LanguageModelError | ToolRuntimeError, import("effect/unstable/sql/SqlClient").SqlClient | DatabaseIn | Exclude<Exclude<Exclude<LanguageModelIn, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, ModelCallPolicy.Service>, PromptAssembler.Service>, WaitService.Service>, EventLog.Service>, LanguageModelService.Service>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>>;
103
+ readonly schemaRegistryLayer?: Layer.Layer<SchemaRegistry.Service> | undefined;
104
+ }) => Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | PromptAssembler.Service | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage, Config.ConfigError | DatabaseError | LanguageModelError | ToolRuntimeError, import("effect/unstable/sql/SqlClient").SqlClient | DatabaseIn | Exclude<Exclude<Exclude<LanguageModelIn, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, ModelCallPolicy.Service>, PromptAssembler.Service>, SchemaRegistry.Service>, WaitService.Service>, EventLog.Service>, LanguageModelService.Service>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>>;
101
105
  export declare const layerWithServicesMultiNode: <DatabaseError, DatabaseIn, LanguageModelError, LanguageModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
102
106
  readonly databaseLayer: Layer.Layer<Database.Service, DatabaseError, DatabaseIn>;
103
107
  readonly languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>;
@@ -107,26 +111,26 @@ export declare const layerWithServicesMultiNode: <DatabaseError, DatabaseIn, Lan
107
111
  readonly rpcPort: number;
108
112
  readonly assignedShardGroups: ReadonlyArray<string>;
109
113
  } & ClusterHttpTuning;
110
- }) => Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | PromptAssembler.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage, Config.ConfigError | DatabaseError | LanguageModelError | ToolRuntimeError, import("effect/unstable/sql/SqlClient").SqlClient | DatabaseIn | import("effect/unstable/http/HttpServer").HttpServer | Exclude<Exclude<Exclude<LanguageModelIn, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, ModelCallPolicy.Service>, PromptAssembler.Service>, WaitService.Service>, EventLog.Service>, LanguageModelService.Service>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>>;
114
+ }) => Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | PromptAssembler.Service | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage, Config.ConfigError | DatabaseError | LanguageModelError | ToolRuntimeError, import("effect/unstable/sql/SqlClient").SqlClient | DatabaseIn | import("effect/unstable/http/HttpServer").HttpServer | Exclude<Exclude<Exclude<LanguageModelIn, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, ModelCallPolicy.Service>, PromptAssembler.Service>, SchemaRegistry.Service>, WaitService.Service>, EventLog.Service>, LanguageModelService.Service>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>>;
111
115
  export declare const layerWithServicesMultiNodeClientOnly: <DatabaseError, DatabaseIn, LanguageModelError, LanguageModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
112
116
  readonly databaseLayer: Layer.Layer<Database.Service, DatabaseError, DatabaseIn>;
113
117
  readonly languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>;
114
118
  readonly toolRuntimeLayer: Layer.Layer<ToolRuntime.Service, ToolRuntimeError, ToolRuntimeIn>;
115
119
  readonly cluster?: ClusterHttpTuning | undefined;
116
- }) => Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | PromptAssembler.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | Sharding.Sharding | Service | Runners.Runners | MessageStorage.MessageStorage, DatabaseError | LanguageModelError | ToolRuntimeError, import("effect/unstable/sql/SqlClient").SqlClient | DatabaseIn | Exclude<Exclude<LanguageModelIn, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, ModelCallPolicy.Service>, PromptAssembler.Service>, WaitService.Service>, EventLog.Service>, LanguageModelService.Service>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>>;
120
+ }) => Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | PromptAssembler.Service | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | Sharding.Sharding | Service | Runners.Runners | MessageStorage.MessageStorage, DatabaseError | LanguageModelError | ToolRuntimeError, import("effect/unstable/sql/SqlClient").SqlClient | DatabaseIn | Exclude<Exclude<LanguageModelIn, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, ModelCallPolicy.Service>, PromptAssembler.Service>, SchemaRegistry.Service>, WaitService.Service>, EventLog.Service>, LanguageModelService.Service>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>>;
117
121
  export declare const layerWithLanguageModelService: <DatabaseError, DatabaseIn, LanguageModelError, LanguageModelIn>(options: {
118
122
  readonly databaseLayer: Layer.Layer<Database.Service, DatabaseError, DatabaseIn>;
119
123
  readonly languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>;
120
- }) => Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | PromptAssembler.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage, Config.ConfigError | DatabaseError | LanguageModelError, import("effect/unstable/sql/SqlClient").SqlClient | DatabaseIn | Exclude<Exclude<Exclude<LanguageModelIn, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>>;
121
- export declare const layer: Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | PromptAssembler.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage, Config.ConfigError, import("@effect/sql-pg/PgClient").PgClient | import("effect/unstable/sql/SqlClient").SqlClient>;
124
+ }) => Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | PromptAssembler.Service | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage, Config.ConfigError | DatabaseError | LanguageModelError, import("effect/unstable/sql/SqlClient").SqlClient | DatabaseIn | Exclude<Exclude<Exclude<LanguageModelIn, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage>, Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>>;
125
+ export declare const layer: Layer.Layer<Database.Service | AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | PromptAssembler.Service | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage, Config.ConfigError, import("@effect/sql-pg/PgClient").PgClient | import("effect/unstable/sql/SqlClient").SqlClient>;
122
126
  export declare const testLayerWithServices: <LanguageModelError, LanguageModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
123
127
  readonly languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>;
124
128
  readonly toolRuntimeLayer: Layer.Layer<ToolRuntime.Service, ToolRuntimeError, ToolRuntimeIn>;
125
- }) => Layer.Layer<AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | PromptAssembler.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver, Config.ConfigError | LanguageModelError | ToolRuntimeError, Exclude<Exclude<Exclude<LanguageModelIn, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver>, AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, ModelCallPolicy.Service>, PromptAssembler.Service>, WaitService.Service>, EventLog.Service>, LanguageModelService.Service>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver>, AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>>;
126
- export declare const testLayerWithLanguageModelService: <LanguageModelError, LanguageModelIn>(languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>) => Layer.Layer<AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | PromptAssembler.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver, Config.ConfigError | LanguageModelError, Exclude<Exclude<Exclude<LanguageModelIn, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver>, AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>>;
127
- export declare const testLayer: Layer.Layer<AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | PromptAssembler.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver, Config.ConfigError, never>;
128
- export declare const testClientLayer: Layer.Layer<AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | PromptAssembler.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | Sharding.Sharding | Service | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver, never, never>;
129
- export declare const testLayerWithDatabaseCheck: <DatabaseError, DatabaseIn>(databaseLayer: Layer.Layer<Database.Service, DatabaseError, DatabaseIn>) => Layer.Layer<AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | PromptAssembler.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver, Config.ConfigError | DatabaseError, DatabaseIn>;
130
- export declare const testClientLayerWithDatabaseCheck: <DatabaseError, DatabaseIn>(databaseLayer: Layer.Layer<Database.Service, DatabaseError, DatabaseIn>) => Layer.Layer<AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | PromptAssembler.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | Sharding.Sharding | Service | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver, DatabaseError, DatabaseIn>;
129
+ }) => Layer.Layer<AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | PromptAssembler.Service | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver, Config.ConfigError | LanguageModelError | ToolRuntimeError, Exclude<Exclude<Exclude<LanguageModelIn, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver>, AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service> | Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<ToolRuntimeIn, ModelCallPolicy.Service>, PromptAssembler.Service>, SchemaRegistry.Service>, WaitService.Service>, EventLog.Service>, LanguageModelService.Service>, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver>, AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>>;
130
+ export declare const testLayerWithLanguageModelService: <LanguageModelError, LanguageModelIn>(languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>) => Layer.Layer<AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | PromptAssembler.Service | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver, Config.ConfigError | LanguageModelError, Exclude<Exclude<Exclude<LanguageModelIn, WorkflowEngine.WorkflowEngine>, ShardingConfig.ShardingConfig | Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver>, AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service>>;
131
+ export declare const testLayer: Layer.Layer<AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | PromptAssembler.Service | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver, Config.ConfigError, never>;
132
+ export declare const testClientLayer: Layer.Layer<AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | PromptAssembler.Service | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | Sharding.Sharding | Service | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver, never, never>;
133
+ export declare const testLayerWithDatabaseCheck: <DatabaseError, DatabaseIn>(databaseLayer: Layer.Layer<Database.Service, DatabaseError, DatabaseIn>) => Layer.Layer<AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | PromptAssembler.Service | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | WorkflowEngine.WorkflowEngine | Sharding.Sharding | SchedulerService.Service | Service | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver, Config.ConfigError | DatabaseError, DatabaseIn>;
134
+ export declare const testClientLayerWithDatabaseCheck: <DatabaseError, DatabaseIn>(databaseLayer: Layer.Layer<Database.Service, DatabaseError, DatabaseIn>) => Layer.Layer<AddressBookRepository.Service | AgentChatRepository.Service | AgentDefinitionRepository.Service | ChildExecutionRepository.Service | ClusterRegistryRepository.Service | EnvelopeRepository.Service | ExecutionEventRepository.Service | ExecutionRepository.Service | ScheduleRepository.Service | ToolCallRepository.Service | WorkspaceLeaseRepository.Service | AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | PromptAssembler.Service | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | Sharding.Sharding | Service | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver, DatabaseError, DatabaseIn>;
131
135
  export declare const check: () => Effect.Effect<ReadinessStatus, RunnerRuntimeError, Service>;
132
136
  export {};
@@ -0,0 +1,67 @@
1
+ import { Shared } from "../../schema/index";
2
+ import { Context, Effect, Layer, Schema } from "effect";
3
+ declare const SchemaRefNotRegistered_base: Schema.Class<SchemaRefNotRegistered, Schema.TaggedStruct<"SchemaRefNotRegistered", {
4
+ readonly schema_ref: Schema.String;
5
+ }>, import("effect/Cause").YieldableError>;
6
+ /**
7
+ * Raised when a `schema_ref` carried by an agent (`output_schema_ref` /
8
+ * `StructuredPart.schema_ref`) cannot be resolved to a registered schema.
9
+ * No fallback is applied — resolution is an execution-time typed failure,
10
+ * mirroring `ModelRegistry.LanguageModelNotRegistered`.
11
+ *
12
+ * @experimental
13
+ */
14
+ export declare class SchemaRefNotRegistered extends SchemaRefNotRegistered_base {
15
+ }
16
+ /**
17
+ * A named schema registration. `ref` is the string agents carry in
18
+ * `output_schema_ref` / `StructuredPart.schema_ref` (e.g. `"schema:review-output"`).
19
+ * Schemas are code; refs are the durable pointer. Registration is
20
+ * composition-time (a layer input), never persisted.
21
+ *
22
+ * @experimental
23
+ */
24
+ export interface Registration {
25
+ readonly ref: string;
26
+ readonly schema: Schema.Top;
27
+ readonly metadata?: Shared.Metadata;
28
+ }
29
+ /**
30
+ * @experimental
31
+ */
32
+ export interface Interface {
33
+ readonly register: (registration: Registration) => Effect.Effect<void>;
34
+ readonly registrations: Effect.Effect<ReadonlyArray<Registration>>;
35
+ readonly resolve: (ref: string) => Effect.Effect<Registration, SchemaRefNotRegistered>;
36
+ }
37
+ declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/SchemaRegistry", Interface>;
38
+ /**
39
+ * @experimental
40
+ */
41
+ export declare class Service extends Service_base {
42
+ }
43
+ /**
44
+ * @experimental
45
+ */
46
+ export declare const layer: (initialRegistrations?: ReadonlyArray<Registration>) => Layer.Layer<Service, never, never>;
47
+ /**
48
+ * @experimental
49
+ */
50
+ export declare const memoryLayer: (initialRegistrations?: ReadonlyArray<Registration>) => Layer.Layer<Service, never, never>;
51
+ /**
52
+ * @experimental
53
+ */
54
+ export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
55
+ /**
56
+ * @experimental
57
+ */
58
+ export declare const register: (registration: Registration) => Effect.Effect<void, never, Service>;
59
+ /**
60
+ * @experimental
61
+ */
62
+ export declare const registrations: () => Effect.Effect<readonly Registration[], never, Service>;
63
+ /**
64
+ * @experimental
65
+ */
66
+ export declare const resolve: (ref: string) => Effect.Effect<Registration, SchemaRefNotRegistered, Service>;
67
+ export {};
@@ -87,6 +87,8 @@ export declare const StartInput: Schema.Struct<{
87
87
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
88
88
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
89
89
  }>>;
90
+ readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
91
+ readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
90
92
  readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
91
93
  readonly instructions: Schema.optionalKey<Schema.String>;
92
94
  readonly model: Schema.optionalKey<Schema.Struct<{
@@ -258,6 +260,8 @@ export declare const StartExecutionWorkflow: Workflow.Workflow<"Relay/Execution/
258
260
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
259
261
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
260
262
  }>>;
263
+ readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
264
+ readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
261
265
  readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
262
266
  readonly instructions: Schema.optionalKey<Schema.String>;
263
267
  readonly model: Schema.optionalKey<Schema.Struct<{
@@ -36,6 +36,16 @@ export declare const ChildRunPreset: Schema.Struct<{
36
36
  }>;
37
37
  export interface ChildRunPreset extends Schema.Schema.Type<typeof ChildRunPreset> {
38
38
  }
39
+ /**
40
+ * Default per-`AgentLoop.run` tool-turn budget when `max_tool_turns` is absent.
41
+ * Preserves pre-configuration behavior bit-for-bit.
42
+ */
43
+ export declare const defaultMaxToolTurns = 8;
44
+ /**
45
+ * Default per-execution wait-turn budget when `max_wait_turns` is absent.
46
+ * Preserves pre-configuration behavior bit-for-bit.
47
+ */
48
+ export declare const defaultMaxWaitTurns = 8;
39
49
  export declare const Definition: Schema.Struct<{
40
50
  readonly name: Schema.String;
41
51
  readonly instructions: Schema.optionalKey<Schema.String>;
@@ -52,6 +62,8 @@ export declare const Definition: Schema.Struct<{
52
62
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
53
63
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
54
64
  }>>;
65
+ readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
66
+ readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
55
67
  readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
56
68
  readonly instructions: Schema.optionalKey<Schema.String>;
57
69
  readonly model: Schema.optionalKey<Schema.Struct<{
@@ -96,6 +108,8 @@ export declare const DefinitionRecord: Schema.Struct<{
96
108
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
97
109
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
98
110
  }>>;
111
+ readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
112
+ readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
99
113
  readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
100
114
  readonly instructions: Schema.optionalKey<Schema.String>;
101
115
  readonly model: Schema.optionalKey<Schema.Struct<{
@@ -143,6 +157,8 @@ export declare const DefinitionRevisionRecord: Schema.Struct<{
143
157
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
144
158
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
145
159
  }>>;
160
+ readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
161
+ readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
146
162
  readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
147
163
  readonly instructions: Schema.optionalKey<Schema.String>;
148
164
  readonly model: Schema.optionalKey<Schema.Struct<{
@@ -188,6 +204,8 @@ export declare const RegisterDefinitionPayload: Schema.Struct<{
188
204
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
189
205
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
190
206
  }>>;
207
+ readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
208
+ readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
191
209
  readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
192
210
  readonly instructions: Schema.optionalKey<Schema.String>;
193
211
  readonly model: Schema.optionalKey<Schema.Struct<{
@@ -234,6 +252,8 @@ export declare const DefinitionRegistered: Schema.Struct<{
234
252
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
235
253
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
236
254
  }>>;
255
+ readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
256
+ readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
237
257
  readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
238
258
  readonly instructions: Schema.optionalKey<Schema.String>;
239
259
  readonly model: Schema.optionalKey<Schema.Struct<{
@@ -283,6 +303,8 @@ export declare const DefinitionList: Schema.Struct<{
283
303
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
284
304
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
285
305
  }>>;
306
+ readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
307
+ readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
286
308
  readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
287
309
  readonly instructions: Schema.optionalKey<Schema.String>;
288
310
  readonly model: Schema.optionalKey<Schema.Struct<{
@@ -332,6 +354,8 @@ export declare const DefinitionRevisionList: Schema.Struct<{
332
354
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
333
355
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
334
356
  }>>;
357
+ readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
358
+ readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
335
359
  readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
336
360
  readonly instructions: Schema.optionalKey<Schema.String>;
337
361
  readonly model: Schema.optionalKey<Schema.Struct<{
@@ -29,6 +29,8 @@ export declare const Execution: Schema.Struct<{
29
29
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
30
30
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
31
31
  }>>;
32
+ readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
33
+ readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
32
34
  readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
33
35
  readonly instructions: Schema.optionalKey<Schema.String>;
34
36
  readonly model: Schema.optionalKey<Schema.Struct<{
@@ -232,7 +234,7 @@ export declare const ChildRunAccepted: Schema.Struct<{
232
234
  }>;
233
235
  export interface ChildRunAccepted extends Schema.Schema.Type<typeof ChildRunAccepted> {
234
236
  }
235
- export declare const ExecutionEventType: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.output.completed", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
237
+ export declare const ExecutionEventType: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.output.completed", "model.usage.reported", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
236
238
  export type ExecutionEventType = typeof ExecutionEventType.Type;
237
239
  export declare const ExecutionEvent: Schema.Struct<{
238
240
  readonly id: Schema.brand<Schema.String, "Relay.EventId"> & {
@@ -244,7 +246,7 @@ export declare const ExecutionEvent: Schema.Struct<{
244
246
  readonly child_execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
245
247
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
246
248
  }>;
247
- readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.output.completed", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
249
+ readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.output.completed", "model.usage.reported", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
248
250
  readonly sequence: Schema.Int;
249
251
  readonly cursor: Schema.String;
250
252
  readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@relayfx/sdk",
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {