harnesstools

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 11 Imported by: ? 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

Package harnesstools provides the harness v2 agent tools update_plan and ask_user (the memory tools are in memorytools).

Index

Constants

View Source
const (
	MaxPlanItems = 50

	MaxOptions = 8
)

Limits of the tools' arguments.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider is the harness tools provider.

func New

func New(st Store) *Provider

New returns the provider.

func (*Provider) Name

func (p *Provider) Name() string

Name implements tools.Provider.

func (*Provider) Tools

func (p *Provider) Tools(_ context.Context, rc tools.RunContext) ([]ai.BaseTool, func(), error)

Tools implements tools.Provider.

type Store

type Store interface {
	SetThreadPlan(ctx context.Context, threadID string, items []store.PlanItem) error
}

Store is the persistence used by the tools.

Jump to

Keyboard shortcuts

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