memory

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package memory wraps the long-term memory toolset shipped by adk-utils-go behind the same `Tools.ADKTools()` shape every other baifo-owned toolset uses (spawn, todos, meta). It exists so the composition root (internal/app) can ask one consistent question to every tool source ("give me your ADK tools") instead of open-coding the external library's slightly different constructor pattern at the call site.

The actual tools (search_memory, save_to_memory, update_memory, delete_memory) come straight from github.com/achetronic/adk-utils-go/tools/memory. We do NOT reimplement them — this package is plumbing only.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tools

type Tools struct {
	MemoryService memory.Service
	AppName       string
}

Tools bundles the deps needed to construct the memory toolset. MemoryService is the long-term store (in baifo that's *facts.Store). AppName is forwarded to the toolset so the agent's tool calls write under the right namespace.

func New

func New(svc memory.Service, appName string) *Tools

New returns a Tools ready for ADKTools(). Kept as a constructor for symmetry with the rest of internal/tools/*.

func (*Tools) ADKTools

func (t *Tools) ADKTools() ([]tool.Tool, error)

ADKTools returns the four memory tools. Returns nil (not an error) when MemoryService is nil — that matches the pre-existing boot semantics where a missing facts store silently disables the surface rather than crashing the chat.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL