MCPcopy Index your code
hub / github.com/anomalyco/opencode / doneTool

Function doneTool

packages/opencode/src/cli/cmd/run/session-data.ts:726–732  ·  view source on GitHub ↗
(part: ToolPart)

Source from the content-addressed store, hash-verified

724}
725
726function doneTool(part: ToolPart): SessionCommit {
727 return toolCommit(part, {
728 text: "",
729 phase: "final",
730 toolState: "completed",
731 })
732}
733
734function failTool(part: ToolPart, text: string): SessionCommit {
735 return toolCommit(part, {

Callers 1

reduceSessionDataFunction · 0.70

Calls 1

toolCommitFunction · 0.70

Tested by

no test coverage detected