finish

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFinish

func NewFinish(_ FinishConfig, deps FinishDeps) (agentkit.Tool, error)

NewFinish registers tool/finish: End an autonomous run, with status=completed or status=blocked.

Best practices:

  • This is the only signal that stops a run early; otherwise it runs to budget.

Types

type FinishConfig

type FinishConfig struct{}

type FinishDeps

type FinishDeps struct {
	SessionStore agentkit.SessionStore `json:"sessionStore"`
}

type FinishInput

type FinishInput struct {
	Status  string `json:"status,omitempty" jsonschema:"completed when the task is done; blocked when it cannot proceed"`
	Summary string `json:"summary" jsonschema:"What was accomplished, or what is blocking"`
}

type FinishOutput

type FinishOutput struct {
	Status       string `json:"status"`
	Acknowledged bool   `json:"acknowledged"`
}

Jump to

Keyboard shortcuts

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