@relayfx/test 0.1.0
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/README.md +5 -0
- package/dist/index.js +18190 -0
- package/dist/types/runtime/address/address-book-service.d.ts +74 -0
- package/dist/types/runtime/address/address-resolution-service.d.ts +140 -0
- package/dist/types/runtime/agent/agent-loop-service.d.ts +85 -0
- package/dist/types/runtime/agent/agent-registry-service.d.ts +31 -0
- package/dist/types/runtime/agent/prompt-assembler-service.d.ts +64 -0
- package/dist/types/runtime/agent/relay-approvals.d.ts +2 -0
- package/dist/types/runtime/agent/relay-compaction.d.ts +23 -0
- package/dist/types/runtime/agent/relay-instructions.d.ts +7 -0
- package/dist/types/runtime/agent/relay-permissions.d.ts +25 -0
- package/dist/types/runtime/agent/relay-steering.d.ts +17 -0
- package/dist/types/runtime/agent/relay-tool-executor.d.ts +22 -0
- package/dist/types/runtime/agent/relay-tool-output.d.ts +7 -0
- package/dist/types/runtime/agent/sequence-allocator.d.ts +8 -0
- package/dist/types/runtime/child/child-run-service.d.ts +90 -0
- package/dist/types/runtime/child/parent-notifier-service.d.ts +40 -0
- package/dist/types/runtime/child/spawn-child-run-tool.d.ts +211 -0
- package/dist/types/runtime/cluster/execution-entity.d.ts +37 -0
- package/dist/types/runtime/content/artifact-store-service.d.ts +26 -0
- package/dist/types/runtime/content/blob-store-service.d.ts +54 -0
- package/dist/types/runtime/entity/entity-instance-service.d.ts +67 -0
- package/dist/types/runtime/entity/entity-registry-service.d.ts +35 -0
- package/dist/types/runtime/envelope/envelope-service.d.ts +56 -0
- package/dist/types/runtime/execution/event-log-service.d.ts +68 -0
- package/dist/types/runtime/execution/execution-service.d.ts +65 -0
- package/dist/types/runtime/execution/execution-watch-service.d.ts +32 -0
- package/dist/types/runtime/execution/session-stream-service.d.ts +33 -0
- package/dist/types/runtime/inbox/inbox-service.d.ts +76 -0
- package/dist/types/runtime/inbox/send-message-tool.d.ts +27 -0
- package/dist/types/runtime/inbox/wait-for-messages-tool.d.ts +34 -0
- package/dist/types/runtime/index.d.ts +51 -0
- package/dist/types/runtime/memory/memory-service.d.ts +22 -0
- package/dist/types/runtime/model/embedding-model-service.d.ts +68 -0
- package/dist/types/runtime/model/language-model-service.d.ts +34 -0
- package/dist/types/runtime/model/model-call-policy.d.ts +14 -0
- package/dist/types/runtime/observability/runtime-metrics.d.ts +19 -0
- package/dist/types/runtime/presence/presence-service.d.ts +30 -0
- package/dist/types/runtime/presence/presence-tool.d.ts +20 -0
- package/dist/types/runtime/runner/runner-runtime-service.d.ts +149 -0
- package/dist/types/runtime/schedule/scheduler-service.d.ts +34 -0
- package/dist/types/runtime/schema-registry/schema-registry-service.d.ts +27 -0
- package/dist/types/runtime/session/session-store-service.d.ts +14 -0
- package/dist/types/runtime/skill/skill-registry-service.d.ts +44 -0
- package/dist/types/runtime/state/execution-state-service.d.ts +57 -0
- package/dist/types/runtime/state/state-tools.d.ts +5 -0
- package/dist/types/runtime/tool/tool-input-schema-digest.d.ts +6 -0
- package/dist/types/runtime/tool/tool-runtime-service.d.ts +139 -0
- package/dist/types/runtime/tool/tool-transition-coordinator.d.ts +13 -0
- package/dist/types/runtime/topic/publish-to-topic-tool.d.ts +24 -0
- package/dist/types/runtime/topic/topic-service.d.ts +50 -0
- package/dist/types/runtime/wait/wait-service.d.ts +81 -0
- package/dist/types/runtime/wait/wait-signal.d.ts +16 -0
- package/dist/types/runtime/workflow/activity-version-registry.d.ts +89 -0
- package/dist/types/runtime/workflow/execution-workflow.d.ts +475 -0
- package/dist/types/runtime/workspace/workspace-planner-service.d.ts +64 -0
- package/dist/types/runtime/workspace/workspace-provider-service.d.ts +108 -0
- package/dist/types/runtime/workspace/workspace-runtime-service.d.ts +21 -0
- package/dist/types/schema/address-schema.d.ts +77 -0
- package/dist/types/schema/agent-schema.d.ts +658 -0
- package/dist/types/schema/content-schema.d.ts +118 -0
- package/dist/types/schema/entity-schema.d.ts +40 -0
- package/dist/types/schema/envelope-schema.d.ts +180 -0
- package/dist/types/schema/execution-schema.d.ts +347 -0
- package/dist/types/schema/ids-schema.d.ts +94 -0
- package/dist/types/schema/inbox-schema.d.ts +81 -0
- package/dist/types/schema/index.d.ts +16 -0
- package/dist/types/schema/presence-schema.d.ts +28 -0
- package/dist/types/schema/schedule-schema.d.ts +79 -0
- package/dist/types/schema/shared-schema.d.ts +13 -0
- package/dist/types/schema/skill-schema.d.ts +260 -0
- package/dist/types/schema/state-schema.d.ts +35 -0
- package/dist/types/schema/tool-schema.d.ts +84 -0
- package/dist/types/schema/workspace-schema.d.ts +78 -0
- package/dist/types/test/captured-model.d.ts +13 -0
- package/dist/types/test/index.d.ts +6 -0
- package/dist/types/test/scripted-model.d.ts +39 -0
- package/dist/types/test/test-runtime.d.ts +9 -0
- package/dist/types/test/test-tools.d.ts +18 -0
- package/dist/types/test/wait-test-kit.d.ts +9 -0
- package/package.json +45 -0
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const TextPart: Schema.Struct<{
|
|
3
|
+
readonly type: Schema.Literal<"text">;
|
|
4
|
+
readonly text: Schema.String;
|
|
5
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
6
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
7
|
+
}>;
|
|
8
|
+
export interface TextPart extends Schema.Schema.Type<typeof TextPart> {
|
|
9
|
+
}
|
|
10
|
+
export declare const StructuredPart: Schema.Struct<{
|
|
11
|
+
readonly type: Schema.Literal<"structured">;
|
|
12
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
13
|
+
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
14
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
15
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
16
|
+
}>;
|
|
17
|
+
export interface StructuredPart extends Schema.Schema.Type<typeof StructuredPart> {
|
|
18
|
+
}
|
|
19
|
+
export declare const BlobReferencePart: Schema.Struct<{
|
|
20
|
+
readonly type: Schema.Literal<"blob-reference">;
|
|
21
|
+
readonly uri: Schema.String;
|
|
22
|
+
readonly media_type: Schema.String;
|
|
23
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
24
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
25
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
26
|
+
}>;
|
|
27
|
+
export interface BlobReferencePart extends Schema.Schema.Type<typeof BlobReferencePart> {
|
|
28
|
+
}
|
|
29
|
+
export declare const ArtifactReferencePart: Schema.Struct<{
|
|
30
|
+
readonly type: Schema.Literal<"artifact-reference">;
|
|
31
|
+
readonly artifact_id: Schema.String;
|
|
32
|
+
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
33
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
34
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
35
|
+
}>;
|
|
36
|
+
export interface ArtifactReferencePart extends Schema.Schema.Type<typeof ArtifactReferencePart> {
|
|
37
|
+
}
|
|
38
|
+
export declare const ToolCallPart: Schema.Struct<{
|
|
39
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
40
|
+
readonly call: Schema.Struct<{
|
|
41
|
+
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
42
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
43
|
+
};
|
|
44
|
+
readonly name: Schema.String;
|
|
45
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
46
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
47
|
+
}>;
|
|
48
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
49
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
50
|
+
}>;
|
|
51
|
+
export interface ToolCallPart extends Schema.Schema.Type<typeof ToolCallPart> {
|
|
52
|
+
}
|
|
53
|
+
export declare const ToolResultPart: Schema.Struct<{
|
|
54
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
55
|
+
readonly result: Schema.Struct<{
|
|
56
|
+
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
57
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
58
|
+
};
|
|
59
|
+
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
60
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
61
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
62
|
+
}>;
|
|
63
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
64
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
65
|
+
}>;
|
|
66
|
+
export interface ToolResultPart extends Schema.Schema.Type<typeof ToolResultPart> {
|
|
67
|
+
}
|
|
68
|
+
export type Part = TextPart | StructuredPart | BlobReferencePart | ArtifactReferencePart | ToolCallPart | ToolResultPart;
|
|
69
|
+
export declare const Part: Schema.Union<readonly [Schema.Struct<{
|
|
70
|
+
readonly type: Schema.Literal<"text">;
|
|
71
|
+
readonly text: Schema.String;
|
|
72
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
73
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
74
|
+
}>, Schema.Struct<{
|
|
75
|
+
readonly type: Schema.Literal<"structured">;
|
|
76
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
77
|
+
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
78
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
79
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
80
|
+
}>, Schema.Struct<{
|
|
81
|
+
readonly type: Schema.Literal<"blob-reference">;
|
|
82
|
+
readonly uri: Schema.String;
|
|
83
|
+
readonly media_type: Schema.String;
|
|
84
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
85
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
86
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
87
|
+
}>, Schema.Struct<{
|
|
88
|
+
readonly type: Schema.Literal<"artifact-reference">;
|
|
89
|
+
readonly artifact_id: Schema.String;
|
|
90
|
+
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
91
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
92
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
93
|
+
}>, Schema.Struct<{
|
|
94
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
95
|
+
readonly call: Schema.Struct<{
|
|
96
|
+
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
97
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
98
|
+
};
|
|
99
|
+
readonly name: Schema.String;
|
|
100
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
101
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
102
|
+
}>;
|
|
103
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
104
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
105
|
+
}>, Schema.Struct<{
|
|
106
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
107
|
+
readonly result: Schema.Struct<{
|
|
108
|
+
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
109
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
110
|
+
};
|
|
111
|
+
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
112
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
113
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
114
|
+
}>;
|
|
115
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
116
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
117
|
+
}>]>;
|
|
118
|
+
export declare const text: (value: string) => TextPart;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const KindDefinition: Schema.Struct<{
|
|
3
|
+
readonly kind: Schema.brand<Schema.String, "Relay.EntityKindName"> & {
|
|
4
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKindName">;
|
|
5
|
+
};
|
|
6
|
+
readonly agent_id: Schema.brand<Schema.String, "Relay.AgentId"> & {
|
|
7
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentId">;
|
|
8
|
+
};
|
|
9
|
+
readonly inbox: Schema.optionalKey<Schema.Struct<{
|
|
10
|
+
readonly drain: Schema.Literals<readonly ["all", "one"]>;
|
|
11
|
+
readonly max_batch: Schema.optionalKey<Schema.Int>;
|
|
12
|
+
}>>;
|
|
13
|
+
readonly state_enabled: Schema.optionalKey<Schema.Boolean>;
|
|
14
|
+
readonly continue_as_new_after_turns: Schema.optionalKey<Schema.Int>;
|
|
15
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
16
|
+
}>;
|
|
17
|
+
export interface KindDefinition extends Schema.Schema.Type<typeof KindDefinition> {
|
|
18
|
+
}
|
|
19
|
+
export declare const InstanceStatus: Schema.Literals<readonly ["active", "destroyed"]>;
|
|
20
|
+
export type InstanceStatus = typeof InstanceStatus.Type;
|
|
21
|
+
export declare const Instance: Schema.Struct<{
|
|
22
|
+
readonly kind: Schema.brand<Schema.String, "Relay.EntityKindName"> & {
|
|
23
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKindName">;
|
|
24
|
+
};
|
|
25
|
+
readonly key: Schema.brand<Schema.String, "Relay.EntityKey"> & {
|
|
26
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKey">;
|
|
27
|
+
};
|
|
28
|
+
readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
29
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
30
|
+
};
|
|
31
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
32
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
33
|
+
};
|
|
34
|
+
readonly generation: Schema.Int;
|
|
35
|
+
readonly status: Schema.Literals<readonly ["active", "destroyed"]>;
|
|
36
|
+
readonly created_at: Schema.Int;
|
|
37
|
+
readonly destroyed_at: Schema.optionalKey<Schema.Int>;
|
|
38
|
+
}>;
|
|
39
|
+
export interface Instance extends Schema.Schema.Type<typeof Instance> {
|
|
40
|
+
}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const WaitMode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
|
|
3
|
+
export type WaitMode = typeof WaitMode.Type;
|
|
4
|
+
export declare const Wait: Schema.Struct<{
|
|
5
|
+
readonly mode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
|
|
6
|
+
readonly timeout: Schema.optionalKey<Schema.String>;
|
|
7
|
+
readonly correlation_key: Schema.optionalKey<Schema.String>;
|
|
8
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
9
|
+
}>;
|
|
10
|
+
export interface Wait extends Schema.Schema.Type<typeof Wait> {
|
|
11
|
+
}
|
|
12
|
+
export declare const Envelope: Schema.Struct<{
|
|
13
|
+
readonly id: Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
|
|
14
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
|
|
15
|
+
};
|
|
16
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
17
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
18
|
+
};
|
|
19
|
+
readonly from: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
20
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
21
|
+
};
|
|
22
|
+
readonly to: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
23
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
24
|
+
};
|
|
25
|
+
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
26
|
+
readonly type: Schema.Literal<"text">;
|
|
27
|
+
readonly text: Schema.String;
|
|
28
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
29
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
30
|
+
}>, Schema.Struct<{
|
|
31
|
+
readonly type: Schema.Literal<"structured">;
|
|
32
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
33
|
+
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
34
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
35
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
36
|
+
}>, Schema.Struct<{
|
|
37
|
+
readonly type: Schema.Literal<"blob-reference">;
|
|
38
|
+
readonly uri: Schema.String;
|
|
39
|
+
readonly media_type: Schema.String;
|
|
40
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
41
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
42
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
43
|
+
}>, Schema.Struct<{
|
|
44
|
+
readonly type: Schema.Literal<"artifact-reference">;
|
|
45
|
+
readonly artifact_id: Schema.String;
|
|
46
|
+
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
47
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
48
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
49
|
+
}>, Schema.Struct<{
|
|
50
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
51
|
+
readonly call: Schema.Struct<{
|
|
52
|
+
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
53
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
54
|
+
};
|
|
55
|
+
readonly name: Schema.String;
|
|
56
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
57
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
58
|
+
}>;
|
|
59
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
60
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
61
|
+
}>, Schema.Struct<{
|
|
62
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
63
|
+
readonly result: Schema.Struct<{
|
|
64
|
+
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
65
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
66
|
+
};
|
|
67
|
+
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
68
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
69
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
70
|
+
}>;
|
|
71
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
72
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
73
|
+
}>]>>;
|
|
74
|
+
readonly wait: Schema.optionalKey<Schema.Struct<{
|
|
75
|
+
readonly mode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
|
|
76
|
+
readonly timeout: Schema.optionalKey<Schema.String>;
|
|
77
|
+
readonly correlation_key: Schema.optionalKey<Schema.String>;
|
|
78
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
79
|
+
}>>;
|
|
80
|
+
readonly correlation_key: Schema.optionalKey<Schema.String>;
|
|
81
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
82
|
+
readonly created_at: Schema.Int;
|
|
83
|
+
}>;
|
|
84
|
+
export interface Envelope extends Schema.Schema.Type<typeof Envelope> {
|
|
85
|
+
}
|
|
86
|
+
export declare const SendInput: Schema.Struct<{
|
|
87
|
+
readonly from: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
88
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
89
|
+
};
|
|
90
|
+
readonly to: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
91
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
92
|
+
};
|
|
93
|
+
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
94
|
+
readonly type: Schema.Literal<"text">;
|
|
95
|
+
readonly text: Schema.String;
|
|
96
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
97
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
98
|
+
}>, Schema.Struct<{
|
|
99
|
+
readonly type: Schema.Literal<"structured">;
|
|
100
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
101
|
+
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
102
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
103
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
104
|
+
}>, Schema.Struct<{
|
|
105
|
+
readonly type: Schema.Literal<"blob-reference">;
|
|
106
|
+
readonly uri: Schema.String;
|
|
107
|
+
readonly media_type: Schema.String;
|
|
108
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
109
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
110
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
111
|
+
}>, Schema.Struct<{
|
|
112
|
+
readonly type: Schema.Literal<"artifact-reference">;
|
|
113
|
+
readonly artifact_id: Schema.String;
|
|
114
|
+
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
115
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
116
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
117
|
+
}>, Schema.Struct<{
|
|
118
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
119
|
+
readonly call: Schema.Struct<{
|
|
120
|
+
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
121
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
122
|
+
};
|
|
123
|
+
readonly name: Schema.String;
|
|
124
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
125
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
126
|
+
}>;
|
|
127
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
128
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
129
|
+
}>, Schema.Struct<{
|
|
130
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
131
|
+
readonly result: Schema.Struct<{
|
|
132
|
+
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
133
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
134
|
+
};
|
|
135
|
+
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
136
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
137
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
138
|
+
}>;
|
|
139
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
140
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
141
|
+
}>]>>;
|
|
142
|
+
readonly idempotency_key: Schema.optionalKey<Schema.String>;
|
|
143
|
+
readonly wait: Schema.optionalKey<Schema.Struct<{
|
|
144
|
+
readonly mode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
|
|
145
|
+
readonly timeout: Schema.optionalKey<Schema.String>;
|
|
146
|
+
readonly correlation_key: Schema.optionalKey<Schema.String>;
|
|
147
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
148
|
+
}>>;
|
|
149
|
+
readonly correlation_key: Schema.optionalKey<Schema.String>;
|
|
150
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
151
|
+
}>;
|
|
152
|
+
export interface SendInput extends Schema.Schema.Type<typeof SendInput> {
|
|
153
|
+
}
|
|
154
|
+
export declare const EnvelopeAccepted: Schema.Struct<{
|
|
155
|
+
readonly envelope_id: Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
|
|
156
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
|
|
157
|
+
};
|
|
158
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
159
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
160
|
+
};
|
|
161
|
+
readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
162
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
163
|
+
}>;
|
|
164
|
+
}>;
|
|
165
|
+
export interface EnvelopeAccepted extends Schema.Schema.Type<typeof EnvelopeAccepted> {
|
|
166
|
+
}
|
|
167
|
+
export declare const EnvelopeReady: Schema.Struct<{
|
|
168
|
+
readonly id: Schema.brand<Schema.String, "Relay.EnvelopeReadyId"> & {
|
|
169
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeReadyId">;
|
|
170
|
+
};
|
|
171
|
+
readonly envelope_id: Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
|
|
172
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
|
|
173
|
+
};
|
|
174
|
+
readonly route_key: Schema.String;
|
|
175
|
+
readonly available_at: Schema.Int;
|
|
176
|
+
readonly attempt: Schema.Int;
|
|
177
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
178
|
+
}>;
|
|
179
|
+
export interface EnvelopeReady extends Schema.Schema.Type<typeof EnvelopeReady> {
|
|
180
|
+
}
|