MCPcopy Create free account
hub / github.com/betta-tech/byo-coding-agent / Definition

Method Definition

internal/tool/remember.go:21–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19func init() { Default.Register(&RememberTool{}) }
20
21func (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
44func (RememberTool) Execute(ctx context.Context, rawInput string) (string, bool) {
45 var in struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected