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

Function createReasoningPart

packages/opencode/test/cli/github-action.test.ts:18–27  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

16}
17
18function createReasoningPart(text: string): SessionV1.Part {
19 return {
20 id: PartID.ascending(),
21 sessionID: SessionID.make("ses_test"),
22 messageID: MessageID.make("msg_test"),
23 type: "reasoning" as const,
24 text,
25 time: { start: 0 },
26 }
27}
28
29function createToolPart(tool: string, title: string, status: "completed" | "running" = "completed"): SessionV1.Part {
30 if (status === "completed") {

Callers 1

Calls 1

makeMethod · 0.45

Tested by

no test coverage detected