task

package
v0.3.0 Latest Latest
Warning

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

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

Package task provides the built-in background task tool task: it lists and stops the background tasks spawned by the current session, for every kind of task, including sub-agents and background commands.

Tasks are started by their own tools (such as sub_agent and the background mode of shell); when you provide those, provide this tool too, or the model cannot check on or stop its tasks. It depends on the tool.TaskManager provided by the runtime and is hidden without one.

Index

Constants

View Source
const (
	ActionStatus = "status"
	ActionStop   = "stop"
)

The tool's two operations, chosen with the action parameter.

View Source
const ToolName = "task"

ToolName is the name of the background task tool.

Variables

This section is empty.

Functions

func Tool

func Tool() tool.Tool

Tool returns the background task tool.

Types

This section is empty.

Jump to

Keyboard shortcuts

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