tools

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 17 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, c *client.Client) error

Types

type Ask

type Ask struct {
	Question   string   `json:"question,omitempty"`
	Options    []string `json:"options,omitempty"`
	Permission string   `json:"permission,omitempty" jsonschema:"the tool call it wants approved"`
}

type Session

type Session struct {
	Ref        string   `json:"ref" jsonschema:"what to pass as session to the other tools"`
	Title      string   `json:"title"`
	State      string   `json:"state" jsonschema:"needs-you, your-turn, working, stopped or past"`
	Host       string   `json:"host,omitempty"`
	Dir        string   `json:"dir"`
	Running    bool     `json:"running" jsonschema:"true when it runs in the background and can take messages"`
	InTerminal bool     `json:"inTerminal,omitempty" jsonschema:"open in someone's terminal: readable, cannot take messages"`
	Pinned     bool     `json:"pinned,omitempty" jsonschema:"the user pinned it to the top of their list"`
	Parked     bool     `json:"parked,omitempty"`
	Agent      string   `json:"agent,omitempty" jsonschema:"the standing agent this conversation belongs to; send to it as @name"`
	You        bool     `json:"you,omitempty" jsonschema:"this is the session calling the tool"`
	Branch     string   `json:"branch,omitempty"`
	Doing      string   `json:"doing,omitempty" jsonschema:"what it is doing right now, while working"`
	Asking     []Ask    `json:"asking,omitempty" jsonschema:"what it is waiting for the user to answer, when it needs them"`
	Asked      string   `json:"asked,omitempty" jsonschema:"the last thing the user asked it"`
	Replied    string   `json:"replied,omitempty" jsonschema:"the start of its last reply"`
	Summary    string   `json:"summary,omitempty" jsonschema:"its last reply in one line, once it has finished a turn"`
	Gist       []string `json:"gist,omitempty" jsonschema:"one line per topic of its last reply"`
	Pages      []string `json:"pages,omitempty" jsonschema:"pages it showed the user with atc show, by name"`
	Servers    []int    `json:"servers,omitempty" jsonschema:"ports of servers it started that are still running"`
	Since      string   `json:"since,omitempty"`
}

Jump to

Keyboard shortcuts

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