Documentation
¶
Overview ¶
Package done provides a tool for the LLM to explicitly signal task completion.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inputs ¶
type Inputs struct {
Summary string `json:"summary" jsonschema:"required,description=Final summary of what was accomplished"`
}
Inputs defines the parameters for the Done tool.
type Tool ¶
type Tool struct {
tool.Base
// OnDone is called when the LLM invokes this tool.
// The assistant sets this callback to signal loop exit.
OnDone func(summary string)
}
Tool signals task completion. When called, it sets a flag that exits the assistant loop.
func (*Tool) Parallel ¶
Parallel returns false because Done sets the doneSignaled flag and must be the last tool executed.
func (*Tool) Sandboxable ¶
Sandboxable returns false as this tool has no filesystem operations.
Click to show internal directories.
Click to hide internal directories.