MCPcopy Create free account
hub / github.com/anomalyco/opencode / createStepFinishPart

Function createStepFinishPart

packages/opencode/test/cli/github-action.test.ts:72–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70}
71
72function createStepFinishPart(): SessionV1.Part {
73 return {
74 id: PartID.ascending(),
75 sessionID: SessionID.make("ses_test"),
76 messageID: MessageID.make("msg_test"),
77 type: "step-finish" as const,
78 reason: "done",
79 cost: 0,
80 tokens: { input: 0, output: 0, reasoning: 0, cache: { read: 0, write: 0 } },
81 }
82}
83
84describe("extractResponseText", () => {
85 test("returns text from text part", () => {

Callers 1

Calls 1

makeMethod · 0.45

Tested by

no test coverage detected