fix conflicts with the new version
This commit is contained in:
parent
a57cc024c6
commit
140a640ebf
@ -1,7 +1,9 @@
|
||||
# example .env file for cognee docker integration
|
||||
LLM_API_KEY=
|
||||
ENABLE_BACKEND_ACCESS_CONTROL="false"
|
||||
|
||||
|
||||
# ~/.clawdbot/ .env file for clawdbot gateway
|
||||
COGNEE_API_KEY=
|
||||
|
||||
CLAWDBOT_GATEWAY_TOKEN=
|
||||
@ -16,7 +16,8 @@ agents:
|
||||
|
||||
# For Cognee Cloud, use:
|
||||
# baseUrl: https://cognee--cognee-saas-backend-serve.modal.run
|
||||
# apiKey: your-api-key-here
|
||||
# Cognee API key is stored in the .env file
|
||||
apiKey: ${COGNEE_API_KEY}
|
||||
|
||||
# Dataset name for organizing memories
|
||||
datasetName: clawdbot
|
||||
|
||||
@ -12,3 +12,5 @@ export * from "./runtime-overrides.js";
|
||||
export * from "./types.js";
|
||||
export { validateConfigObject, validateConfigObjectWithPlugins } from "./validation.js";
|
||||
export { MoltbotSchema } from "./zod-schema.js";
|
||||
|
||||
export type { MoltbotConfig as ClawdbotConfig } from "./types.js";
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import fs from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import type { ClawdbotConfig } from "../config/config.js";
|
||||
import type { MoltbotConfig } from "../config/config.js";
|
||||
import { resolveAgentWorkspaceDir } from "../agents/agent-scope.js";
|
||||
import { resolveSessionTranscriptsDirForAgent } from "../config/sessions/paths.js";
|
||||
import { createSubsystemLogger } from "../logging/subsystem.js";
|
||||
@ -40,7 +40,7 @@ export type CogneeMemorySource = "memory" | "sessions";
|
||||
|
||||
export class CogneeMemoryProvider {
|
||||
private readonly client: CogneeClient;
|
||||
private readonly cfg: ClawdbotConfig;
|
||||
private readonly cfg: MoltbotConfig;
|
||||
private readonly agentId: string;
|
||||
private readonly workspaceDir: string;
|
||||
private readonly datasetName: string;
|
||||
@ -53,7 +53,7 @@ export class CogneeMemoryProvider {
|
||||
private syncedFiles = new Map<string, string>(); // path -> hash
|
||||
|
||||
constructor(
|
||||
cfg: ClawdbotConfig,
|
||||
cfg: MoltbotConfig,
|
||||
agentId: string,
|
||||
sources: Array<CogneeMemorySource>,
|
||||
config: CogneeProviderConfig = {},
|
||||
@ -412,7 +412,7 @@ export class CogneeMemoryProvider {
|
||||
}
|
||||
|
||||
export async function createCogneeProvider(
|
||||
cfg: ClawdbotConfig,
|
||||
cfg: MoltbotConfig,
|
||||
agentId: string,
|
||||
sources: Array<CogneeMemorySource>,
|
||||
config: CogneeProviderConfig = {},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user