ax(brain): normalise remember response keys
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
8b159abd17
commit
103fcb473b
3 changed files with 3 additions and 3 deletions
|
|
@ -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}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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"`
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue