@relayfx/sdk 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1964 -1586
- package/dist/types/relay/operation.d.ts +1 -0
- package/dist/types/runtime/address/address-resolution-service.d.ts +1 -0
- package/dist/types/runtime/agent/agent-loop-service.d.ts +17 -5
- package/dist/types/runtime/agent/relay-approvals.d.ts +9 -0
- package/dist/types/runtime/agent/relay-tool-executor.d.ts +35 -0
- package/dist/types/runtime/agent/sequence-allocator.d.ts +27 -0
- package/dist/types/runtime/cluster/execution-entity.d.ts +3 -0
- package/dist/types/runtime/execution/event-log-service.d.ts +7 -0
- package/dist/types/runtime/model/language-model-service.d.ts +9 -3
- package/dist/types/runtime/runner/runner-runtime-service.d.ts +13 -13
- package/dist/types/runtime/workflow/execution-workflow.d.ts +2 -0
- package/dist/types/schema/agent-schema.d.ts +7 -0
- package/dist/types/schema/execution-schema.d.ts +1 -0
- package/dist/types/store-sql/execution/execution-event-repository.d.ts +2 -0
- package/package.json +1 -1
|
@@ -74,6 +74,7 @@ export declare const StartExecutionInput: Schema.Struct<{
|
|
|
74
74
|
}>>;
|
|
75
75
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
76
76
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
77
|
+
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
77
78
|
readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
78
79
|
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
79
80
|
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
@@ -72,6 +72,7 @@ export declare const LocalAgentTarget: Schema.Struct<{
|
|
|
72
72
|
}>>;
|
|
73
73
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
74
74
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
75
|
+
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
75
76
|
readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
76
77
|
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
77
78
|
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
@@ -4,9 +4,9 @@ import { Cause, Context, Effect, Layer, Schema } from "effect";
|
|
|
4
4
|
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
|
-
import * as PromptAssembler from "./prompt-assembler-service";
|
|
8
7
|
import * as SchemaRegistry from "../schema-registry/schema-registry-service";
|
|
9
8
|
import * as ToolRuntime from "../tool/tool-runtime-service";
|
|
9
|
+
import * as PromptAssembler from "./prompt-assembler-service";
|
|
10
10
|
declare const AgentLoopError_base: Schema.Class<AgentLoopError, Schema.TaggedStruct<"AgentLoopError", {
|
|
11
11
|
readonly message: Schema.String;
|
|
12
12
|
readonly next_event_sequence: Schema.optionalKey<Schema.Int>;
|
|
@@ -29,6 +29,18 @@ declare const AgentLoopWaitRequested_base: Schema.Class<AgentLoopWaitRequested,
|
|
|
29
29
|
}>, Cause.YieldableError>;
|
|
30
30
|
export declare class AgentLoopWaitRequested extends AgentLoopWaitRequested_base {
|
|
31
31
|
}
|
|
32
|
+
declare const AgentLoopBudgetExceeded_base: Schema.Class<AgentLoopBudgetExceeded, Schema.TaggedStruct<"AgentLoopBudgetExceeded", {
|
|
33
|
+
readonly tokens_used: Schema.Int;
|
|
34
|
+
readonly token_budget: Schema.Int;
|
|
35
|
+
readonly next_event_sequence: Schema.Int;
|
|
36
|
+
}>, Cause.YieldableError>;
|
|
37
|
+
/**
|
|
38
|
+
* Raised when an agent's per-execution `token_budget` is reached. Checked
|
|
39
|
+
* between turns at durable boundaries (never mid-stream); the execution fails
|
|
40
|
+
* terminally, exactly like `AgentLoopError` (docs/spec/07 + ADR-0021).
|
|
41
|
+
*/
|
|
42
|
+
export declare class AgentLoopBudgetExceeded extends AgentLoopBudgetExceeded_base {
|
|
43
|
+
}
|
|
32
44
|
export interface RunInput {
|
|
33
45
|
readonly executionId: Ids.ExecutionId;
|
|
34
46
|
readonly agent: Agent.Definition;
|
|
@@ -43,20 +55,20 @@ export interface RunResult {
|
|
|
43
55
|
readonly nextEventSequence: Execution.ExecutionEventSequence;
|
|
44
56
|
}
|
|
45
57
|
export interface Interface {
|
|
46
|
-
readonly run: (input: RunInput) => Effect.Effect<RunResult, AgentLoopError | AgentLoopWaitRequested>;
|
|
58
|
+
readonly run: (input: RunInput) => Effect.Effect<RunResult, AgentLoopError | AgentLoopWaitRequested | AgentLoopBudgetExceeded>;
|
|
47
59
|
}
|
|
48
60
|
declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/AgentLoop", Interface>;
|
|
49
61
|
export declare class Service extends Service_base {
|
|
50
62
|
}
|
|
51
63
|
/**
|
|
52
|
-
* Prompt for the terminal structured turn. The
|
|
64
|
+
* Prompt for the terminal structured turn. The transcript already holds the full
|
|
53
65
|
* conversation history (system message, user input, and every tool result), so
|
|
54
66
|
* this single instruction is enough to elicit the typed final output.
|
|
55
67
|
*
|
|
56
68
|
* @experimental
|
|
57
69
|
*/
|
|
58
70
|
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 |
|
|
71
|
+
export declare const layer: Layer.Layer<Service, never, AgentChatRepository.Service | EventLog.Service | LanguageModelService.Service | ModelCallPolicy.Service | SchemaRegistry.Service | ToolRuntime.Service | PromptAssembler.Service>;
|
|
60
72
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
61
|
-
export declare const run: (input: RunInput) => Effect.Effect<RunResult, AgentLoopError | AgentLoopWaitRequested, Service>;
|
|
73
|
+
export declare const run: (input: RunInput) => Effect.Effect<RunResult, AgentLoopError | AgentLoopWaitRequested | AgentLoopBudgetExceeded, Service>;
|
|
62
74
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Approvals } from "@batonfx/core";
|
|
2
|
+
/**
|
|
3
|
+
* Relay's binding for Baton's `Approvals` seam. No Relay tool definition carries
|
|
4
|
+
* `needsApproval` today, so auto-approval leaves behavior unchanged; the file is
|
|
5
|
+
* the named seam the durable-Wait-backed HITL implementation will replace.
|
|
6
|
+
*
|
|
7
|
+
* @experimental
|
|
8
|
+
*/
|
|
9
|
+
export declare const layer: import("effect/Layer").Layer<Approvals.Approvals, never, never>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ToolExecutor } from "@batonfx/core";
|
|
2
|
+
import { Execution, Ids, Tool } from "../../schema/index";
|
|
3
|
+
import { Effect, Layer } from "effect";
|
|
4
|
+
import * as EventLog from "../execution/event-log-service";
|
|
5
|
+
import * as ToolRuntime from "../tool/tool-runtime-service";
|
|
6
|
+
/**
|
|
7
|
+
* Per-run inputs the executor closes over. Mirrors the fields `runToolCall`
|
|
8
|
+
* threaded before Baton owned the loop.
|
|
9
|
+
*
|
|
10
|
+
* @experimental
|
|
11
|
+
*/
|
|
12
|
+
export interface Config {
|
|
13
|
+
readonly toolRuntime: ToolRuntime.Interface;
|
|
14
|
+
readonly eventLog: EventLog.Interface;
|
|
15
|
+
readonly allocator: {
|
|
16
|
+
readonly current: Effect.Effect<Execution.ExecutionEventSequence>;
|
|
17
|
+
readonly resetTo: (sequence: Execution.ExecutionEventSequence) => Effect.Effect<void>;
|
|
18
|
+
};
|
|
19
|
+
readonly executionId: Ids.ExecutionId;
|
|
20
|
+
readonly permissions: ReadonlyArray<Tool.Permission>;
|
|
21
|
+
readonly startedAt: number;
|
|
22
|
+
readonly eventSequence: Execution.ExecutionEventSequence;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Baton `ToolExecutor` over Relay's `ToolRuntime`. Allocates sequences and maps
|
|
26
|
+
* errors; `ToolRuntime.run` itself appends `tool.call.requested` /
|
|
27
|
+
* `tool.result.received` and enforces idempotency by `call.id`.
|
|
28
|
+
*
|
|
29
|
+
* @experimental
|
|
30
|
+
*/
|
|
31
|
+
export declare const make: (config: Config) => ToolExecutor.Interface;
|
|
32
|
+
/**
|
|
33
|
+
* @experimental
|
|
34
|
+
*/
|
|
35
|
+
export declare const layer: (config: Config) => Layer.Layer<ToolExecutor.ToolExecutor>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Execution } from "../../schema/index";
|
|
2
|
+
import { Effect } from "effect";
|
|
3
|
+
/**
|
|
4
|
+
* Per-run monotonic execution-event sequence counter. Created inside
|
|
5
|
+
* `AgentLoop.run` and closed over by the durable fold (delta / usage events) and
|
|
6
|
+
* the `RelayToolExecutor` (tool events), so both share one counter exactly how
|
|
7
|
+
* `state.nextEventSequence` threaded before Baton owned the loop.
|
|
8
|
+
*
|
|
9
|
+
* @experimental
|
|
10
|
+
*/
|
|
11
|
+
export interface SequenceAllocator {
|
|
12
|
+
/** Return the current sequence and advance the counter by `count`. */
|
|
13
|
+
readonly allocate: (count: number) => Effect.Effect<Execution.ExecutionEventSequence>;
|
|
14
|
+
/** Read the current sequence without advancing. */
|
|
15
|
+
readonly current: Effect.Effect<Execution.ExecutionEventSequence>;
|
|
16
|
+
/**
|
|
17
|
+
* Set the counter to `sequence` (may move it down). Used to re-seed from the
|
|
18
|
+
* durable log after `ToolRuntime.run`, mirroring the old `nextLoggedSequence`
|
|
19
|
+
* recovery — a wait appends only `tool.call.requested`, so a naive advance
|
|
20
|
+
* would over-count.
|
|
21
|
+
*/
|
|
22
|
+
readonly resetTo: (sequence: Execution.ExecutionEventSequence) => Effect.Effect<void>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @experimental
|
|
26
|
+
*/
|
|
27
|
+
export declare const make: (first: Execution.ExecutionEventSequence) => Effect.Effect<SequenceAllocator>;
|
|
@@ -82,6 +82,7 @@ export declare const Start: Rpc.Rpc<"start", Schema.Struct<{
|
|
|
82
82
|
}>>;
|
|
83
83
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
84
84
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
85
|
+
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
85
86
|
readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
86
87
|
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
87
88
|
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
@@ -213,6 +214,7 @@ export declare const entity: Entity.Entity<"Relay/Execution", Rpc.Rpc<"start", S
|
|
|
213
214
|
}>>;
|
|
214
215
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
215
216
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
217
|
+
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
216
218
|
readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
217
219
|
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
218
220
|
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
@@ -343,6 +345,7 @@ export declare const client: Effect.Effect<(entityId: string) => import("effect/
|
|
|
343
345
|
}>>;
|
|
344
346
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
345
347
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
348
|
+
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
346
349
|
readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
347
350
|
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
348
351
|
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
@@ -36,6 +36,12 @@ export interface Interface {
|
|
|
36
36
|
readonly findBySequenceOrCursor: (input: FindBySequenceOrCursorInput) => Effect.Effect<Option.Option<Execution.ExecutionEvent>, EventLogError>;
|
|
37
37
|
readonly findFirstByTypeAfterSequence: (input: FindFirstByTypeAfterSequenceInput) => Effect.Effect<Option.Option<Execution.ExecutionEvent>, EventLogError>;
|
|
38
38
|
readonly maxSequence: (executionId: Ids.ExecutionId) => Effect.Effect<Execution.ExecutionEventSequence | undefined, EventLogError>;
|
|
39
|
+
/**
|
|
40
|
+
* Total tokens (input + output) reported across every `model.usage.reported`
|
|
41
|
+
* event for the execution. Used to seed per-agent budget accounting on resume
|
|
42
|
+
* without replaying the full log.
|
|
43
|
+
*/
|
|
44
|
+
readonly sumUsage: (executionId: Ids.ExecutionId) => Effect.Effect<number, EventLogError>;
|
|
39
45
|
}
|
|
40
46
|
declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/EventLog", Interface>;
|
|
41
47
|
export declare class Service extends Service_base {
|
|
@@ -50,5 +56,6 @@ export declare const replay: (input: ReplayInput) => Effect.Effect<readonly Exec
|
|
|
50
56
|
export declare const findBySequenceOrCursor: (input: FindBySequenceOrCursorInput) => Effect.Effect<Option.Option<Execution.ExecutionEvent>, EventLogError, Service>;
|
|
51
57
|
export declare const findFirstByTypeAfterSequence: (input: FindFirstByTypeAfterSequenceInput) => Effect.Effect<Option.Option<Execution.ExecutionEvent>, EventLogError, Service>;
|
|
52
58
|
export declare const maxSequence: (executionId: string & import("effect/Brand").Brand<"Relay.ExecutionId">) => Effect.Effect<number | undefined, EventLogError, Service>;
|
|
59
|
+
export declare const sumUsage: (executionId: string & import("effect/Brand").Brand<"Relay.ExecutionId">) => Effect.Effect<number, EventLogError, Service>;
|
|
53
60
|
export declare const stream: (input: ReplayInput) => Stream.Stream<Execution.ExecutionEvent, EventLogCursorNotFound | EventLogError, Service>;
|
|
54
61
|
export {};
|
|
@@ -12,6 +12,12 @@ export declare const LanguageModelNotRegistered: typeof ModelRegistry.LanguageMo
|
|
|
12
12
|
export type LanguageModelNotRegistered = ModelRegistry.LanguageModelNotRegistered;
|
|
13
13
|
/** @deprecated Use `ModelRegistry.Registration`. */
|
|
14
14
|
export type Registration = ModelRegistry.Registration;
|
|
15
|
+
/**
|
|
16
|
+
* Throughput governance for the model registry layer.
|
|
17
|
+
*
|
|
18
|
+
* @deprecated Use `ModelRegistry.GovernanceOptions`.
|
|
19
|
+
*/
|
|
20
|
+
export type GovernanceOptions = ModelRegistry.GovernanceOptions;
|
|
15
21
|
/** @deprecated Use `ModelRegistry.RegisterInput`. */
|
|
16
22
|
export type RegisterInput = ModelRegistry.RegisterInput;
|
|
17
23
|
/** @deprecated Use `ModelRegistry.ModelEnvironment`. */
|
|
@@ -40,11 +46,11 @@ export declare const registrationFromLayer: <R>(input: {
|
|
|
40
46
|
readonly metadata?: ModelRegistry.Metadata;
|
|
41
47
|
}) => Effect.Effect<ModelRegistry.Registration, never, R>;
|
|
42
48
|
/** @deprecated Use `ModelRegistry.layer`. */
|
|
43
|
-
export declare const layer: (initialRegistrations?: ReadonlyArray<Registration
|
|
49
|
+
export declare const layer: (initialRegistrations?: ReadonlyArray<Registration>, options?: GovernanceOptions) => Layer.Layer<Service, never, never>;
|
|
44
50
|
/** @deprecated Use `ModelRegistry.layerFromRegistrationEffects`. */
|
|
45
|
-
export declare const layerFromRegistrationEffects: <E, R>(registrations: ReadonlyArray<Effect.Effect<Registration, E, R
|
|
51
|
+
export declare const layerFromRegistrationEffects: <E, R>(registrations: ReadonlyArray<Effect.Effect<Registration, E, R>>, options?: GovernanceOptions) => Layer.Layer<Service, E, Exclude<R, import("effect/Scope").Scope>>;
|
|
46
52
|
/** @deprecated Use `ModelRegistry.memoryLayer`. */
|
|
47
|
-
export declare const memoryLayer: (initialRegistrations?: ReadonlyArray<Registration
|
|
53
|
+
export declare const memoryLayer: (initialRegistrations?: ReadonlyArray<Registration>, options?: GovernanceOptions) => Layer.Layer<Service, never, never>;
|
|
48
54
|
/** @deprecated Use `ModelRegistry.testLayer`. */
|
|
49
55
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
50
56
|
/** @deprecated Use `ModelRegistry.register`. */
|
|
@@ -81,7 +81,7 @@ export declare const layerWith: <CheckError, CheckIn, ClusterOut, ClusterError,
|
|
|
81
81
|
readonly blobStoreLayer?: Layer.Layer<BlobStore.Service> | undefined;
|
|
82
82
|
readonly artifactStoreLayer?: Layer.Layer<ArtifactStore.Service> | undefined;
|
|
83
83
|
readonly schemaRegistryLayer?: Layer.Layer<SchemaRegistry.Service> | undefined;
|
|
84
|
-
}) => Layer.Layer<AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | ModelCallPolicy.Service |
|
|
84
|
+
}) => Layer.Layer<AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | ModelCallPolicy.Service | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | PromptAssembler.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 | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | PromptAssembler.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | WorkspacePlanner.Service>, LanguageModelOut>, WorkflowEngine.WorkflowEngine>, ClusterOut>, RepositoryOut>>;
|
|
85
85
|
export declare const layerWithClient: <CheckError, CheckIn, ClusterOut, ClusterError, ClusterIn, RepositoryOut, RepositoryError, RepositoryIn, LanguageModelOut, LanguageModelError, LanguageModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
|
|
86
86
|
readonly checkLayer: Layer.Layer<Service, CheckError, CheckIn>;
|
|
87
87
|
readonly clusterLayer: Layer.Layer<ClusterOut, ClusterError, ClusterIn>;
|
|
@@ -92,7 +92,7 @@ export declare const layerWithClient: <CheckError, CheckIn, ClusterOut, ClusterE
|
|
|
92
92
|
readonly blobStoreLayer?: Layer.Layer<BlobStore.Service> | undefined;
|
|
93
93
|
readonly artifactStoreLayer?: Layer.Layer<ArtifactStore.Service> | undefined;
|
|
94
94
|
readonly schemaRegistryLayer?: Layer.Layer<SchemaRegistry.Service> | undefined;
|
|
95
|
-
}) => Layer.Layer<AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | ModelCallPolicy.Service |
|
|
95
|
+
}) => Layer.Layer<AddressBook.Service | AgentRegistry.Service | AddressResolution.Service | EventLog.Service | ModelCallPolicy.Service | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | PromptAssembler.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>>;
|
|
96
96
|
export declare const layerWithServices: <DatabaseError, DatabaseIn, LanguageModelError, LanguageModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
|
|
97
97
|
readonly databaseLayer: Layer.Layer<Database.Service, DatabaseError, DatabaseIn>;
|
|
98
98
|
readonly languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>;
|
|
@@ -101,7 +101,7 @@ export declare const layerWithServices: <DatabaseError, DatabaseIn, LanguageMode
|
|
|
101
101
|
readonly blobStoreLayer?: Layer.Layer<BlobStore.Service> | undefined;
|
|
102
102
|
readonly artifactStoreLayer?: Layer.Layer<ArtifactStore.Service> | undefined;
|
|
103
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 |
|
|
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 | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | PromptAssembler.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>>;
|
|
105
105
|
export declare const layerWithServicesMultiNode: <DatabaseError, DatabaseIn, LanguageModelError, LanguageModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
|
|
106
106
|
readonly databaseLayer: Layer.Layer<Database.Service, DatabaseError, DatabaseIn>;
|
|
107
107
|
readonly languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>;
|
|
@@ -111,26 +111,26 @@ export declare const layerWithServicesMultiNode: <DatabaseError, DatabaseIn, Lan
|
|
|
111
111
|
readonly rpcPort: number;
|
|
112
112
|
readonly assignedShardGroups: ReadonlyArray<string>;
|
|
113
113
|
} & ClusterHttpTuning;
|
|
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 |
|
|
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 | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | PromptAssembler.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>>;
|
|
115
115
|
export declare const layerWithServicesMultiNodeClientOnly: <DatabaseError, DatabaseIn, LanguageModelError, LanguageModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
|
|
116
116
|
readonly databaseLayer: Layer.Layer<Database.Service, DatabaseError, DatabaseIn>;
|
|
117
117
|
readonly languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>;
|
|
118
118
|
readonly toolRuntimeLayer: Layer.Layer<ToolRuntime.Service, ToolRuntimeError, ToolRuntimeIn>;
|
|
119
119
|
readonly cluster?: ClusterHttpTuning | undefined;
|
|
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 |
|
|
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 | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | PromptAssembler.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>>;
|
|
121
121
|
export declare const layerWithLanguageModelService: <DatabaseError, DatabaseIn, LanguageModelError, LanguageModelIn>(options: {
|
|
122
122
|
readonly databaseLayer: Layer.Layer<Database.Service, DatabaseError, DatabaseIn>;
|
|
123
123
|
readonly languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>;
|
|
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 |
|
|
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 |
|
|
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 | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | PromptAssembler.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 | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | PromptAssembler.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>;
|
|
126
126
|
export declare const testLayerWithServices: <LanguageModelError, LanguageModelIn, ToolRuntimeError, ToolRuntimeIn>(options: {
|
|
127
127
|
readonly languageModelLayer: Layer.Layer<LanguageModelService.Service, LanguageModelError, LanguageModelIn>;
|
|
128
128
|
readonly toolRuntimeLayer: Layer.Layer<ToolRuntime.Service, ToolRuntimeError, ToolRuntimeIn>;
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | PromptAssembler.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 | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | PromptAssembler.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 | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | PromptAssembler.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 | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | PromptAssembler.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 | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | PromptAssembler.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 | SchemaRegistry.Service | WaitService.Service | ToolRuntime.Service | PromptAssembler.Service | AgentLoop.Service | ChildRunService.Service | ParentNotifier.Service | ExecutionService.Service | ShardingConfig.ShardingConfig | WorkspacePlanner.Service | Sharding.Sharding | Service | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver, DatabaseError, DatabaseIn>;
|
|
135
135
|
export declare const check: () => Effect.Effect<ReadinessStatus, RunnerRuntimeError, Service>;
|
|
136
136
|
export {};
|
|
@@ -89,6 +89,7 @@ export declare const StartInput: Schema.Struct<{
|
|
|
89
89
|
}>>;
|
|
90
90
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
91
91
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
92
|
+
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
92
93
|
readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
93
94
|
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
94
95
|
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
@@ -262,6 +263,7 @@ export declare const StartExecutionWorkflow: Workflow.Workflow<"Relay/Execution/
|
|
|
262
263
|
}>>;
|
|
263
264
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
264
265
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
266
|
+
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
265
267
|
readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
266
268
|
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
267
269
|
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
@@ -64,6 +64,7 @@ export declare const Definition: Schema.Struct<{
|
|
|
64
64
|
}>>;
|
|
65
65
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
66
66
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
67
|
+
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
67
68
|
readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
68
69
|
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
69
70
|
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
@@ -110,6 +111,7 @@ export declare const DefinitionRecord: Schema.Struct<{
|
|
|
110
111
|
}>>;
|
|
111
112
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
112
113
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
114
|
+
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
113
115
|
readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
114
116
|
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
115
117
|
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
@@ -159,6 +161,7 @@ export declare const DefinitionRevisionRecord: Schema.Struct<{
|
|
|
159
161
|
}>>;
|
|
160
162
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
161
163
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
164
|
+
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
162
165
|
readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
163
166
|
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
164
167
|
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
@@ -206,6 +209,7 @@ export declare const RegisterDefinitionPayload: Schema.Struct<{
|
|
|
206
209
|
}>>;
|
|
207
210
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
208
211
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
212
|
+
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
209
213
|
readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
210
214
|
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
211
215
|
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
@@ -254,6 +258,7 @@ export declare const DefinitionRegistered: Schema.Struct<{
|
|
|
254
258
|
}>>;
|
|
255
259
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
256
260
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
261
|
+
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
257
262
|
readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
258
263
|
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
259
264
|
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
@@ -305,6 +310,7 @@ export declare const DefinitionList: Schema.Struct<{
|
|
|
305
310
|
}>>;
|
|
306
311
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
307
312
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
313
|
+
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
308
314
|
readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
309
315
|
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
310
316
|
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
@@ -356,6 +362,7 @@ export declare const DefinitionRevisionList: Schema.Struct<{
|
|
|
356
362
|
}>>;
|
|
357
363
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
358
364
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
365
|
+
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
359
366
|
readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
360
367
|
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
361
368
|
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
@@ -31,6 +31,7 @@ export declare const Execution: Schema.Struct<{
|
|
|
31
31
|
}>>;
|
|
32
32
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
33
33
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
34
|
+
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
34
35
|
readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
35
36
|
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
36
37
|
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
@@ -64,6 +64,7 @@ export interface Interface {
|
|
|
64
64
|
readonly findByCursor: (input: FindByCursorInput) => Effect.Effect<Option.Option<Execution.ExecutionEvent>, ExecutionEventRepositoryError>;
|
|
65
65
|
readonly findFirstByTypeAfterSequence: (input: FindFirstByTypeAfterSequenceInput) => Effect.Effect<Option.Option<Execution.ExecutionEvent>, ExecutionEventRepositoryError>;
|
|
66
66
|
readonly maxSequence: (executionId: Ids.ExecutionId) => Effect.Effect<Execution.ExecutionEventSequence | undefined, ExecutionEventRepositoryError>;
|
|
67
|
+
readonly sumUsage: (executionId: Ids.ExecutionId) => Effect.Effect<number, ExecutionEventRepositoryError>;
|
|
67
68
|
readonly notifyAppended: (event: Execution.ExecutionEvent) => Effect.Effect<void, ExecutionEventRepositoryError>;
|
|
68
69
|
readonly appendedSignals: (executionId: Ids.ExecutionId) => Stream.Stream<Execution.ExecutionEventSequence, ExecutionEventRepositoryError>;
|
|
69
70
|
readonly listAfterSequence: (input: ListAfterSequenceInput) => Effect.Effect<ReadonlyArray<Execution.ExecutionEvent>, ExecutionEventRepositoryError>;
|
|
@@ -80,6 +81,7 @@ export declare const findBySequenceOrCursor: (input: FindBySequenceOrCursorInput
|
|
|
80
81
|
export declare const findByCursor: (input: FindByCursorInput) => Effect.Effect<Option.Option<Execution.ExecutionEvent>, ExecutionEventRepositoryError, Service>;
|
|
81
82
|
export declare const findFirstByTypeAfterSequence: (input: FindFirstByTypeAfterSequenceInput) => Effect.Effect<Option.Option<Execution.ExecutionEvent>, ExecutionEventRepositoryError, Service>;
|
|
82
83
|
export declare const maxSequence: (executionId: string & import("effect/Brand").Brand<"Relay.ExecutionId">) => Effect.Effect<number | undefined, ExecutionEventRepositoryError, Service>;
|
|
84
|
+
export declare const sumUsage: (executionId: string & import("effect/Brand").Brand<"Relay.ExecutionId">) => Effect.Effect<number, ExecutionEventRepositoryError, Service>;
|
|
83
85
|
export declare const notifyAppended: (event: Execution.ExecutionEvent) => Effect.Effect<void, ExecutionEventRepositoryError, Service>;
|
|
84
86
|
export declare const appendedSignals: (executionId: Ids.ExecutionId) => Stream.Stream<number, ExecutionEventRepositoryError, Service>;
|
|
85
87
|
export declare const listAfterSequence: (input: ListAfterSequenceInput) => Effect.Effect<readonly Execution.ExecutionEvent[], ExecutionEventRepositoryError, Service>;
|