knowledge_search

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: 6 Imported by: 0

Documentation

Overview

Package knowledge_search implements the knowledge_search tool: on-demand lookup of the bee knowledge store from inside an agent turn. used when the model wants to recall past observations, decisions, or stored preferences without waiting for the passive selection layer to inject them.

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 searches the knowledge store on demand.

func New

func New(prov llm.Provider, model, dir string, topK int) *Tool

New constructs the tool. topK defaults to 3 when ≤0.

func (*Tool) Run

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

Run executes the search and returns the matched records as text.

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