@breign/db-schemas 0.1.92 → 0.1.93
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Long-term agent memory — one row per virtual file under /memories
|
|
2
|
+
* Long-term agent memory — one row per virtual file under /memories/ (this agent) or
|
|
3
|
+
* /shared/ (shared by all the user's agents in the organisation).
|
|
3
4
|
*
|
|
4
5
|
* Shared between brain-api (storage adapters + tool) and any other consumer.
|
|
5
6
|
* The path is a virtual filesystem key (e.g. '/memories/core.md'); identity
|
|
@@ -14,8 +15,11 @@ export type AgentMemory = {
|
|
|
14
15
|
* mapped inside the PG adapter (cf. agents-pg.adapter.ts).
|
|
15
16
|
*/
|
|
16
17
|
organisationId: string;
|
|
17
|
-
/**
|
|
18
|
-
|
|
18
|
+
/**
|
|
19
|
+
* agentId (not brainId) — consistent with Chat.agentId and the rest of the code.
|
|
20
|
+
* null: the user's memory shared by every agent of the organisation.
|
|
21
|
+
*/
|
|
22
|
+
agentId: string | null;
|
|
19
23
|
userId: string;
|
|
20
24
|
/** e.g. '/memories/core.md' — namespace validated tool-side, never by the model alone. */
|
|
21
25
|
path: string;
|
package/dist/types/agent.d.ts
CHANGED
|
@@ -57,8 +57,11 @@ export type AgentToolPermissions = {
|
|
|
57
57
|
allowedMethods?: string[];
|
|
58
58
|
};
|
|
59
59
|
export type AgentMemoryConfiguration = {
|
|
60
|
+
/** The user's memory shared by all their agents in the organisation (/shared/). */
|
|
60
61
|
userMemoryEnabled?: boolean;
|
|
62
|
+
/** The user's memory within this agent only (/memories/). */
|
|
61
63
|
agentMemoryEnabled?: boolean;
|
|
64
|
+
/** Not implemented yet: has no effect. */
|
|
62
65
|
organizationMemoryEnabled?: boolean;
|
|
63
66
|
};
|
|
64
67
|
export type AgentComputerUseConfiguration = {
|
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Long-term agent memory — one row per virtual file under /memories
|
|
2
|
+
* Long-term agent memory — one row per virtual file under /memories/ (this agent) or
|
|
3
|
+
* /shared/ (shared by all the user's agents in the organisation).
|
|
3
4
|
*
|
|
4
5
|
* Shared between brain-api (storage adapters + tool) and any other consumer.
|
|
5
6
|
* The path is a virtual filesystem key (e.g. '/memories/core.md'); identity
|
|
@@ -14,8 +15,11 @@ export type AgentMemory = {
|
|
|
14
15
|
* mapped inside the PG adapter (cf. agents-pg.adapter.ts).
|
|
15
16
|
*/
|
|
16
17
|
organisationId: string;
|
|
17
|
-
/**
|
|
18
|
-
|
|
18
|
+
/**
|
|
19
|
+
* agentId (not brainId) — consistent with Chat.agentId and the rest of the code.
|
|
20
|
+
* null: the user's memory shared by every agent of the organisation.
|
|
21
|
+
*/
|
|
22
|
+
agentId: string | null;
|
|
19
23
|
userId: string;
|
|
20
24
|
/** e.g. '/memories/core.md' — namespace validated tool-side, never by the model alone. */
|
|
21
25
|
path: string;
|
package/src/types/agent.ts
CHANGED
|
@@ -51,8 +51,11 @@ export type AgentToolPermissions = {
|
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
export type AgentMemoryConfiguration = {
|
|
54
|
+
/** The user's memory shared by all their agents in the organisation (/shared/). */
|
|
54
55
|
userMemoryEnabled?: boolean;
|
|
56
|
+
/** The user's memory within this agent only (/memories/). */
|
|
55
57
|
agentMemoryEnabled?: boolean;
|
|
58
|
+
/** Not implemented yet: has no effect. */
|
|
56
59
|
organizationMemoryEnabled?: boolean;
|
|
57
60
|
};
|
|
58
61
|
|