Versions in this module Expand all Collapse all v0 v0.2.0 Nov 1, 2026 Changes in this version + var ErrInvalidPatch = errors.New("invalid local workspace patch") + var ErrPatchRejected = errors.New("local workspace patch rejected") + var ErrUnsupportedFile = errors.New(...) + func GetCommandToolNames() []string + func NewApplyPatchTool(opt *ApplyPatchToolOpt) (executor.Tool, error) + func NewCommandTools(opt *CommandToolsOpt) ([]executor.Tool, error) + func NewReadFileTool(opt *ReadFileToolOpt) (executor.Tool, error) + type ApplyPatchToolOpt struct + Workspace workspace.Workspace + func NewApplyPatchToolOpt(toolWorkspace workspace.Workspace) *ApplyPatchToolOpt + type CommandResult struct + CommandID string + Error string + ExitCode *int + HasMore bool + NextCursor uint64 + Output string + Status string + StopReason string + Truncated bool + func ParseCommandResult(content json.RawMessage) (CommandResult, bool) + func (r CommandResult) IsFailed() bool + type CommandToolsOpt struct + EnvironmentID string + TerminalManager terminal.TerminalManager + Workspace workspace.Workspace + func NewCommandToolsOpt(environmentID string, environmentWorkspace workspace.Workspace, ...) *CommandToolsOpt + type PatchFileChange struct + AddedLines int + Content string + DeletedLines int + Kind PatchFileKind + Path string + Sections []PatchSection + func GetPatchFileChanges(patch string) ([]PatchFileChange, error) + type PatchFileKind string + const PatchFileAdd + const PatchFileDelete + const PatchFileUpdate + type PatchSection struct + Header string + Lines []string + type ReadFileToolOpt struct + MaxImageBytes int + Workspace workspace.Workspace + func NewReadFileToolOpt(toolWorkspace workspace.Workspace) *ReadFileToolOpt + func (opt *ReadFileToolOpt) WithMaxImageBytes(maxImageBytes int) *ReadFileToolOpt