@relayfx/sdk 0.0.45 → 0.0.47

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.
@@ -42,7 +42,7 @@ export interface RegisterBatonAgentInput {
42
42
  readonly id: Ids.AgentId;
43
43
  readonly address?: Ids.AddressId;
44
44
  readonly agent: BatonAgent.Agent<any>;
45
- readonly model: Agent.ModelSelection;
45
+ readonly model?: Agent.ModelSelection;
46
46
  readonly permissions?: ReadonlyArray<Tool.Permission>;
47
47
  readonly skill_definition_ids?: ReadonlyArray<Ids.SkillDefinitionId>;
48
48
  readonly permission_rules?: Agent.PermissionRuleset;
@@ -18,4 +18,5 @@ export declare const memoryLayer: (options?: Options) => Layer.Layer<Service | M
18
18
  export declare const testLayer: (implementation: Interface) => Layer.Layer<Service | Memory.Memory>;
19
19
  export declare const recall: (input: Memory.RecallInput) => Effect.Effect<readonly Memory.Item[], Memory.MemoryError, Service>;
20
20
  export declare const remember: (input: Memory.RememberInput) => Effect.Effect<void, Memory.MemoryError, Service>;
21
+ export declare const forget: (input: Memory.ForgetInput) => Effect.Effect<void, Memory.MemoryError, Service>;
21
22
  export {};
@@ -35,9 +35,15 @@ export interface QueryInput {
35
35
  readonly embedding: ReadonlyArray<number>;
36
36
  readonly topK: number;
37
37
  }
38
+ export interface ForgetInput {
39
+ readonly agent: string;
40
+ readonly subject: Ids.MemorySubjectId;
41
+ readonly id?: string | undefined;
42
+ }
38
43
  export interface Interface {
39
44
  readonly upsert: (input: UpsertInput) => Effect.Effect<MemoryRecord, MemoryRepositoryError>;
40
45
  readonly query: (input: QueryInput) => Effect.Effect<ReadonlyArray<MemoryMatch>, MemoryRepositoryError>;
46
+ readonly forget: (input: ForgetInput) => Effect.Effect<void, MemoryRepositoryError>;
41
47
  }
42
48
  declare const Service_base: Context.ServiceClass<Service, "@relayfx/store-sql/MemoryRepository", Interface>;
43
49
  export declare class Service extends Service_base {
@@ -57,4 +63,5 @@ export declare const memoryLayer: Layer.Layer<Service, never, never>;
57
63
  export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
58
64
  export declare const upsert: (input: UpsertInput) => Effect.Effect<MemoryRecord, MemoryRepositoryError, Service>;
59
65
  export declare const query: (input: QueryInput) => Effect.Effect<readonly MemoryMatch[], MemoryRepositoryError, Service>;
66
+ export declare const forget: (input: ForgetInput) => Effect.Effect<void, MemoryRepositoryError, Service>;
60
67
  export {};
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.45",
4
+ "version": "0.0.47",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
@@ -25,8 +25,8 @@
25
25
  "typecheck": "bun tsc --noEmit"
26
26
  },
27
27
  "dependencies": {
28
- "@batonfx/core": "0.3.3",
29
- "@batonfx/providers": "0.3.3",
28
+ "@batonfx/core": "0.3.6",
29
+ "@batonfx/providers": "0.3.6",
30
30
  "@effect/ai-anthropic": "4.0.0-beta.93",
31
31
  "@effect/ai-openai": "4.0.0-beta.93",
32
32
  "@effect/ai-openai-compat": "4.0.0-beta.93",