runner

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 24 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Reviews of a conversation for what to keep: each one a run of the runner host in a session that starts from the conversation reviewed, with only the memory and skill tools, file reading and search and the tools the profile adds, which tells the session what it saved once it ended

Index

Constants

View Source
const Source = "memory_review"

Source of the runs that review a conversation, whose turns memory never keeps

Variables

This section is empty.

Functions

func Saved

func Saved(messages []*sessionsv1.Message, mode string) []string

What a review saved, read from the results of its memory and skill_manage calls: a short line of each change, or with verbose the text of each; none when notices are off or nothing was saved

func SavedNote

func SavedNote(lines []string, verbose bool) string

The note a review's lines make in the chat, empty for none

Types

type Review

type Review struct {
	// Session whose conversation it reviews, which its writes are for
	Session string
	// The user asked for it, so what it deletes is not held for approval
	Attended bool
}

A review going on, as the memory tool sees it

type Reviews

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

The reviews of every session, each run through the runner host on the model the review task is held to

func Register

func Register(registry *runner.Registry, toolset *tools.Registry, stores *sessions.Registry, providers *provider.Registry,
	catalog *models.Registry) *Reviews

func (*Reviews) Called

func (r *Reviews) Called(session, tool string)

Counts a call of the session: the memory tool and skill_manage reset what the reviews wait for, every other call counts toward a review of the skills

func (*Reviews) Of

func (r *Reviews) Of(session string) (Review, bool)

The review whose run goes on in the session, false for a session no review runs in

func (*Reviews) Sources

func (*Reviews) Sources() []runner.Source

func (*Reviews) Start

func (r *Reviews) Start(cfg *config.Config, session string, scope Scope, focus string, attended bool) (bool, error)

Starts a review of the session's conversation in the background, one at a time for a session; one the user did not ask for waits while the session replies, as the profile says. False when one runs already

func (*Reviews) Stop

func (r *Reviews) Stop(profile string) error

Gives up the reviews of the profile still waiting for a quiet session before its folder moves or goes; those running are runs, which the host stops itself

func (*Reviews) Tick

func (r *Reviews) Tick(cfg *config.Config, session string)

Counts the finished turn and starts a review once enough turns or tool calls passed since the agent last wrote memory or a skill

type Scope

type Scope int

What a review looks at

const (
	Memory Scope = iota
	Skills
	Both
)

Jump to

Keyboard shortcuts

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