Help us shape the future of Go! Take the 2026 Go Developer Survey

task

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TaskDefinition

func TaskDefinition() tools.Definition

TaskDefinition returns the task tool schema without requiring a live service.

Types

type Config

type Config struct {
	Service *tasks.Service
}

Config holds construction parameters for TaskTool.

type TaskTool

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

TaskTool lets agents create and query async tasks.

func New

func New(cfg Config) *TaskTool

New creates a TaskTool from cfg.

func (*TaskTool) Definition

func (t *TaskTool) Definition() tools.Definition

Definition returns the tool schema.

func (*TaskTool) Execute

func (t *TaskTool) Execute(ctx context.Context, args map[string]any) (string, error)

Execute runs the tool action.

Jump to

Keyboard shortcuts

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