UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

422 lines (421 loc) • 10.2 kB
{ "id": "knowledge", "kind": "memory", "categories": [ "memory" ], "name": "Knowledge", "description": "Evidence-backed knowledge, inspectable in OpenClaw.", "version": "0.1.0", "reload": { "turnHandover": true }, "configSchema": { "type": "object", "properties": { "operatorRead": { "type": "boolean", "default": true }, "writesEnabled": { "type": "boolean", "default": true }, "stores": { "type": "object", "patternProperties": { "^[a-z][a-z0-9-]{0,47}$": { "type": "object", "required": [ "agents" ], "properties": { "label": { "type": "string", "minLength": 1, "maxLength": 80 }, "agents": { "type": "array", "items": { "type": "string", "pattern": "^[a-z][a-z0-9_-]{0,63}$" }, "maxItems": 100 } }, "additionalProperties": false } }, "additionalProperties": false }, "pageBudgets": { "type": "object", "properties": { "hubPercentile": { "type": "number", "minimum": 50, "maximum": 99.9, "description": "Authored-link degree percentile, within each store partition, at which a page counts as a hub and gets the smaller body budget. Default 90." } }, "additionalProperties": false }, "maintenance": { "type": "object", "properties": { "enabled": { "type": "boolean", "description": "Run the scheduled maintenance pass over every configured store. Default true." }, "schedule": { "type": "string", "minLength": 9, "maxLength": 100, "description": "Five-field cron expression. Default 30 3 * * * (03:30 daily)." }, "timezone": { "type": "string", "minLength": 1, "maxLength": 100, "description": "IANA time zone for the schedule. Default: the Gateway host's time zone." } }, "additionalProperties": false }, "recallGate": { "type": "object", "properties": { "mode": { "type": "string", "enum": [ "off", "shadow", "live" ], "description": "off disables the gate; shadow (default) logs what it would inject and injects nothing; live injects matched records into the user turn." }, "candidates": { "type": "string", "enum": [ "keyword", "model" ], "description": "keyword (default) shortlists pages by keyword search and scores each with an excerpt of its best passages; model has the decision model pick from the page label index." }, "highThreshold": { "type": "number", "minimum": 0, "maximum": 1, "description": "Per-page relevance probability at or above which page text is injected. Default 0.75." }, "mediumThreshold": { "type": "number", "minimum": 0, "maximum": 1, "description": "Per-page relevance probability at or above which a one-line pointer is injected. Off unless set." }, "skipHintBelow": { "type": "number", "minimum": 0, "maximum": 1, "description": "When set and nothing is injected, a best score below this adds a one-line hint that memory search is probably unnecessary. Off unless set." }, "excerpts": { "type": "integer", "minimum": 1, "maximum": 10, "description": "keyword mode: most passages quoted per page. Default 4." }, "excerptChars": { "type": "integer", "minimum": 100, "maximum": 4000, "description": "keyword mode: characters per passage. Default 1000." }, "pageChars": { "type": "integer", "minimum": 200, "maximum": 6000, "description": "Characters of page text injected per page. Default 2800." }, "timeoutMs": { "type": "integer", "minimum": 100, "maximum": 10000, "description": "Whole-gate latency budget per turn. Default 1500." }, "maxIndexChars": { "type": "integer", "minimum": 500, "maximum": 200000, "description": "model mode: character budget of the index sent to the decision model. Default 24000." }, "maxCandidates": { "type": "integer", "minimum": 1, "maximum": 10, "description": "Most pages scored per turn. Default 10." } }, "additionalProperties": false } }, "additionalProperties": false }, "doctorContract": { "configRepair": true }, "activation": { "onStartup": true }, "controlUi": { "entry": "dist/control-ui/9d5b0dbb6a3da9fb410f0ceda932a6a2d7fd83166cab39bef6af9157f0c3b740/index.js", "panelIcon": "assets/panel-icon.svg", "styles": [ "dist/control-ui/9d5b0dbb6a3da9fb410f0ceda932a6a2d7fd83166cab39bef6af9157f0c3b740/index.css" ] }, "skills": [ "./skills" ], "contracts": { "tools": [ "knowledge_annotate", "knowledge_attach", "knowledge_attach_file", "knowledge_attachment", "knowledge_chronicle_day", "knowledge_chronicle_last_seen", "knowledge_chronicle_since", "knowledge_connections", "knowledge_correct", "knowledge_create_claim", "knowledge_create_relationship", "knowledge_diagnostics", "knowledge_edit_body", "knowledge_evidence_read", "knowledge_extract_section", "knowledge_grep", "knowledge_history", "knowledge_lookup", "knowledge_merge", "knowledge_mutation", "knowledge_ontology", "knowledge_publish_batch", "knowledge_recall", "knowledge_reconcile_evidence", "knowledge_record", "knowledge_records", "knowledge_relink", "knowledge_remember", "knowledge_resume", "knowledge_revision", "knowledge_save_page", "knowledge_source_check", "knowledge_status", "knowledge_supersede", "knowledge_timeline", "knowledge_unmerge", "knowledge_verify", "knowledge_withdraw" ] }, "toolMetadata": { "knowledge_annotate": { "profiles": [ "coding" ] }, "knowledge_attach": { "profiles": [ "coding" ] }, "knowledge_attach_file": { "profiles": [ "coding" ] }, "knowledge_attachment": { "profiles": [ "coding" ] }, "knowledge_chronicle_day": { "profiles": [ "coding" ] }, "knowledge_chronicle_last_seen": { "profiles": [ "coding" ] }, "knowledge_chronicle_since": { "profiles": [ "coding" ] }, "knowledge_connections": { "profiles": [ "coding" ] }, "knowledge_correct": { "profiles": [ "coding" ] }, "knowledge_create_claim": { "profiles": [ "coding" ] }, "knowledge_create_relationship": { "profiles": [ "coding" ] }, "knowledge_diagnostics": { "profiles": [ "coding" ] }, "knowledge_edit_body": { "profiles": [ "coding" ] }, "knowledge_evidence_read": { "profiles": [ "coding" ] }, "knowledge_extract_section": { "profiles": [ "coding" ] }, "knowledge_grep": { "profiles": [ "coding" ] }, "knowledge_history": { "profiles": [ "coding" ] }, "knowledge_lookup": { "profiles": [ "coding" ] }, "knowledge_merge": { "profiles": [ "coding" ] }, "knowledge_mutation": { "profiles": [ "coding" ] }, "knowledge_ontology": { "profiles": [ "coding" ] }, "knowledge_publish_batch": { "profiles": [ "coding" ] }, "knowledge_recall": { "profiles": [ "coding" ] }, "knowledge_reconcile_evidence": { "profiles": [ "coding" ] }, "knowledge_record": { "profiles": [ "coding" ] }, "knowledge_records": { "profiles": [ "coding" ] }, "knowledge_relink": { "profiles": [ "coding" ] }, "knowledge_remember": { "profiles": [ "coding" ] }, "knowledge_resume": { "profiles": [ "coding" ] }, "knowledge_revision": { "profiles": [ "coding" ] }, "knowledge_save_page": { "profiles": [ "coding" ] }, "knowledge_source_check": { "profiles": [ "coding" ] }, "knowledge_status": { "profiles": [ "coding" ] }, "knowledge_supersede": { "profiles": [ "coding" ] }, "knowledge_timeline": { "profiles": [ "coding" ] }, "knowledge_unmerge": { "profiles": [ "coding" ] }, "knowledge_verify": { "profiles": [ "coding" ] }, "knowledge_withdraw": { "profiles": [ "coding" ] } }, "recommendedPrompts": [ "Help me get started with Knowledge.", "Help me import my existing Memory into Knowledge.", "Answer a question using my saved Knowledge and cite the evidence." ] }