From 103fcb473b0d6f2c691222e5043fc7427f2d3d8a Mon Sep 17 00:00:00 2001 From: Virgil Date: Thu, 2 Apr 2026 08:49:22 +0000 Subject: [PATCH] ax(brain): normalise remember response keys Co-Authored-By: Virgil --- pkg/agentic/commands_test.go | 2 +- pkg/brain/provider.go | 2 +- pkg/brain/tools.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/agentic/commands_test.go b/pkg/agentic/commands_test.go index 582c884..c03519d 100644 --- a/pkg/agentic/commands_test.go +++ b/pkg/agentic/commands_test.go @@ -289,7 +289,7 @@ func TestCommands_CmdBrainRemember_Good(t *testing.T) { assert.Equal(t, 24, options.Int("expires_in")) return core.Result{Value: map[string]any{ "success": true, - "memoryId": "mem-1", + "memory_id": "mem-1", "timestamp": "2026-03-31T12:00:00Z", }, OK: true} }) diff --git a/pkg/brain/provider.go b/pkg/brain/provider.go index 529a399..cc38cc2 100644 --- a/pkg/brain/provider.go +++ b/pkg/brain/provider.go @@ -103,7 +103,7 @@ func (p *BrainProvider) Describe() []api.RouteDescription { "type": "object", "properties": map[string]any{ "success": map[string]any{"type": "boolean"}, - "memoryId": map[string]any{"type": "string"}, + "memory_id": map[string]any{"type": "string"}, "timestamp": map[string]any{"type": "string", "format": "date-time"}, }, }, diff --git a/pkg/brain/tools.go b/pkg/brain/tools.go index 99c9281..bef6b14 100644 --- a/pkg/brain/tools.go +++ b/pkg/brain/tools.go @@ -31,7 +31,7 @@ type RememberInput struct { // } type RememberOutput struct { Success bool `json:"success"` - MemoryID string `json:"memoryId,omitempty"` + MemoryID string `json:"memory_id,omitempty"` Timestamp time.Time `json:"timestamp"` }