knowledge_write

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package knowledge_write implements the knowledge_write tool: store a record in bee's on-disk knowledge store. Records persist across sessions and are injected into the system prompt on future turns matching their tags/tokens.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tool

type Tool struct {
	// contains filtered or unexported fields
}

Tool stores records in the bee knowledge store.

func New

func New(dir string) *Tool

New constructs the tool. dir is the store directory (from knowledge.StoreDir).

func (*Tool) Run

func (t *Tool) Run(ctx context.Context, in map[string]any) (tools.Result, error)

Run writes a record to the knowledge store.

func (*Tool) Spec

func (t *Tool) Spec() llm.ToolSpec

Spec advertises the tool to the model.

Jump to

Keyboard shortcuts

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