You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
replace broad Type.Record(Type.String(), Type.Any()) parameters for openbrain_recall and openbrain_writeback with explicit Typebox schemas
mirror the Agent Memory API request shapes for recall scope/limits/entities and write-back memory payload/provenance/source references
rebuild integrations/openclaw-agent-memory/plugin/dist/index.js from the updated source
Why
This keeps the OpenClaw plugin tool surface inspectable and safer for agents without changing the API client behavior. It is intentionally complementary to #278: this PR only describes the tool parameters; #278 can still inject schema versions and improve API error detail.
Thanks for the contribution. The explicit Typebox schemas for openbrain_recall and openbrain_writeback mirror the Edge Function's expected shapes closely, and keeping schema_version optional at the tool boundary is the right call — runtime injection is the client's job. The bounded limits (max_items and max_tokens ranges) are a good touch for constraining the model. dist/index.js is regenerated, so the built plugin reflects the change.
One coordination note for the maintainer: #309 modifies src/index.ts, which #281 and #283 also touch — whichever of the cluster lands first, the others will need a small rebase. Merge ordering across the four-PR OpenClaw cluster (#278, #281, #283, #309) is flagged separately. Recommend maintainer review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Type.Record(Type.String(), Type.Any())parameters foropenbrain_recallandopenbrain_writebackwith explicit Typebox schemasintegrations/openclaw-agent-memory/plugin/dist/index.jsfrom the updated sourceWhy
This keeps the OpenClaw plugin tool surface inspectable and safer for agents without changing the API client behavior. It is intentionally complementary to #278: this PR only describes the tool parameters; #278 can still inject schema versions and improve API error detail.
Verification
npm install --ignore-scripts --omit=peernpm run buildnode --check dist/index.jsgit diff --checkNotes
workspace_idandschema_versionremain optional at the tool boundary because the plugin/client path and pending [integrations] OpenClaw plugin: inject schema_version + surface error details in client #278 own runtime injection behavior.Related to #278, #279.