()
| 19 | func init() { Default.Register(&RememberTool{}) } |
| 20 | |
| 21 | func (RememberTool) Definition() api.ToolDef { |
| 22 | return api.ToolDef{ |
| 23 | Name: "remember", |
| 24 | Description: "Record a fact, decision, or preference into the agent's persistent memory so it carries across sessions. Use sparingly for things the user genuinely wants to persist (project conventions, preferences, important decisions). Don't dump every tool call here.", |
| 25 | InputSchema: map[string]any{ |
| 26 | "content": map[string]any{ |
| 27 | "type": "string", |
| 28 | "description": "The text to remember.", |
| 29 | }, |
| 30 | "kind": map[string]any{ |
| 31 | "type": "string", |
| 32 | "description": "Optional category: fact (default), decision, preference.", |
| 33 | }, |
| 34 | "tags": map[string]any{ |
| 35 | "type": "array", |
| 36 | "items": map[string]any{"type": "string"}, |
| 37 | "description": "Optional short tags to make the entry findable later via the recall tool.", |
| 38 | }, |
| 39 | }, |
| 40 | Required: []string{"content"}, |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | func (RememberTool) Execute(ctx context.Context, rawInput string) (string, bool) { |
| 45 | var in struct { |
nothing calls this directly
no outgoing calls
no test coverage detected