Documentation
¶
Overview ¶
Package tools provides the execution-environment-backed tools of the agent harness.
Index ¶
- func CreateBashTool(options *BashToolOptions) *harness.AgentHarnessTool
- func CreateEditTool() *harness.AgentHarnessTool
- func CreateReadTool(options *ReadToolOptions) *harness.AgentHarnessTool
- func CreateWriteTool() *harness.AgentHarnessTool
- type BashExecution
- type BashToolDetails
- type BashToolOptions
- type EditToolDetails
- type ExecutionToolContext
- type ReadImageProcessorResult
- type ReadToolDetails
- type ReadToolOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBashTool ¶
func CreateBashTool(options *BashToolOptions) *harness.AgentHarnessTool
CreateBashTool executes prepared commands and emits bounded progress checkpoints.
func CreateEditTool ¶
func CreateEditTool() *harness.AgentHarnessTool
CreateEditTool applies disjoint replacements to the original file contents.
func CreateReadTool ¶
func CreateReadTool(options *ReadToolOptions) *harness.AgentHarnessTool
CreateReadTool reads files and images through the current turn's environment.
func CreateWriteTool ¶
func CreateWriteTool() *harness.AgentHarnessTool
CreateWriteTool writes files through the environment's canonical mutation queue.
Types ¶
type BashExecution ¶
type BashExecution = builtin.BashExecution
BashExecution is the mutable request supplied to a bash preparation hook.
type BashToolDetails ¶
type BashToolDetails = builtin.HarnessBashToolDetails
BashToolDetails describes a bounded shell capture and its spill file.
type BashToolOptions ¶
type BashToolOptions = builtin.BashToolOptions
BashToolOptions configures the command prefix and preparation hook.
type EditToolDetails ¶
type EditToolDetails = builtin.HarnessEditToolDetails
EditToolDetails contains both display and unified diffs.
type ExecutionToolContext ¶
type ExecutionToolContext = builtin.ExecutionToolContext
ExecutionToolContext carries the environment and can be embedded in an application's turn context.
type ReadImageProcessorResult ¶
type ReadImageProcessorResult = builtin.ReadImageProcessorResult
ReadImageProcessorResult carries converted bytes or an omission notice.
type ReadToolDetails ¶
type ReadToolDetails = builtin.HarnessReadToolDetails
ReadToolDetails describes truncated text reads.
type ReadToolOptions ¶
type ReadToolOptions = builtin.ReadToolOptions
ReadToolOptions configures image processing for a read tool.