save

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Overview

Package save provides a tool for the AI agent to save bash commands for later reuse.

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 saves a command name-to-command mapping for the user to run later via CLI.

func NewTool

func NewTool(saver commandSaver) *Tool

NewTool creates a save_command tool.

func (*Tool) Info

func (t *Tool) Info(_ context.Context) (*schema.ToolInfo, error)

func (*Tool) InvokableRun

func (t *Tool) InvokableRun(ctx context.Context, argumentsInJSON string, _ ...einotool.Option) (string, error)

func (*Tool) IsConcurrentSafe

func (t *Tool) IsConcurrentSafe() bool

func (*Tool) PreflightValidate

func (t *Tool) PreflightValidate(input *compose.ToolInput) error

func (*Tool) Preview

func (t *Tool) Preview(input *compose.ToolInput) domain.ToolDisplay

Jump to

Keyboard shortcuts

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