MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / createReasoningBlock

Function createReasoningBlock

cli/src/utils/block-operations.ts:108–119  ·  view source on GitHub ↗
(
  content: string,
  thinkingOpen: boolean,
  thinkingId: string,
)

Source from the content-addressed store, hash-verified

106 * Creates a new reasoning (thinking) text block.
107 */
108const createReasoningBlock = (
109 content: string,
110 thinkingOpen: boolean,
111 thinkingId: string,
112): TextContentBlock => ({
113 type: 'text',
114 content,
115 textType: 'reasoning',
116 thinkingCollapseState: 'preview',
117 thinkingOpen,
118 thinkingId,
119})
120
121/**
122 * Creates a new regular text block.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected