docs: update memory tool list, CLI usage, and config file reading logic (#4861)
Co-authored-by: Livia Ellen <liviaellen@msn.com>
This commit is contained in:
Vendored
+26
@@ -1,4 +1,29 @@
|
||||
declare module "openclaw/plugin-sdk" {
|
||||
export interface MemoryArtifact {
|
||||
id: string;
|
||||
type: "memory" | "dream" | "digest" | "entity";
|
||||
title: string;
|
||||
content: string;
|
||||
metadata?: Record<string, unknown>;
|
||||
createdAt?: string;
|
||||
updatedAt?: string;
|
||||
}
|
||||
|
||||
export interface PublicArtifactsProvider {
|
||||
listArtifacts(options?: {
|
||||
userId?: string;
|
||||
types?: string[];
|
||||
limit?: number;
|
||||
}): Promise<MemoryArtifact[]>;
|
||||
}
|
||||
|
||||
export interface MemoryCapabilityConfig {
|
||||
promptBuilder?: (ctx: any) => Promise<string | null>;
|
||||
flushPlanResolver?: (ctx: any) => Promise<any>;
|
||||
runtime?: Record<string, unknown>;
|
||||
publicArtifacts?: PublicArtifactsProvider;
|
||||
}
|
||||
|
||||
export interface OpenClawPluginApi {
|
||||
pluginConfig: Record<string, unknown>;
|
||||
logger: {
|
||||
@@ -32,6 +57,7 @@ declare module "openclaw/plugin-sdk" {
|
||||
start: (...args: any[]) => void;
|
||||
stop: () => void;
|
||||
}): void;
|
||||
registerMemoryCapability?(config: MemoryCapabilityConfig): void;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user