ax(brain): normalise remember response keys

Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
Virgil 2026-04-02 08:49:22 +00:00
parent 8b159abd17
commit 103fcb473b
3 changed files with 3 additions and 3 deletions

View file

@ -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}
})

View file

@ -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"},
},
},

View file

@ -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"`
}