knowledge

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

README

Knowledge Management

Save, retrieve, and manage agent knowledge in an append-only model. Knowledge is organized by topic and identified by slug.

Configuration

No configuration is required. The knowledge tool is always available.

Available Functions

Function Description
knowledge_list List all knowledge slugs in the current topic
knowledge_get Get specific knowledge by slug, or all knowledges in the topic
knowledge_save Save or update knowledge (by slug, name, content). Maximum 10KB per topic.
knowledge_archive Archive a knowledge entry (logical delete, frees quota)

Usage

Knowledge entries are scoped to a topic (typically a ticket) and identified by a unique slug. The agent uses knowledge to accumulate findings during investigation.

  • Slug: A short identifier for the knowledge entry (e.g., ip-reputation, user-activity)
  • Name: A human-readable name for the entry
  • Content: The knowledge content (Markdown supported)
  • Quota: Maximum 10KB of knowledge per topic to prevent unbounded growth

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Knowledge

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

func New

func (*Knowledge) Configure

func (x *Knowledge) Configure(ctx context.Context) error

func (*Knowledge) Flags

func (x *Knowledge) Flags() []cli.Flag

func (*Knowledge) Helper

func (x *Knowledge) Helper() *cli.Command

func (*Knowledge) LogValue

func (x *Knowledge) LogValue() slog.Value

func (*Knowledge) Name

func (x *Knowledge) Name() string

func (*Knowledge) Prompt

func (x *Knowledge) Prompt(ctx context.Context) (string, error)

func (*Knowledge) Run

func (x *Knowledge) Run(ctx context.Context, name string, args map[string]any) (map[string]any, error)

func (*Knowledge) SetTopic

func (x *Knowledge) SetTopic(topic types.KnowledgeTopic)

SetTopic sets the topic from current alert/ticket context

func (*Knowledge) Specs

func (x *Knowledge) Specs(ctx context.Context) ([]gollem.ToolSpec, error)

Jump to

Keyboard shortcuts

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