MCPcopy Create free account
hub / github.com/Noumena-Network/code / isThinkingOnlyAssistantMessage

Function isThinkingOnlyAssistantMessage

src/query.ts:175–184  ·  view source on GitHub ↗
(message: Message | undefined)

Source from the content-addressed store, hash-verified

173}
174
175function isThinkingOnlyAssistantMessage(message: Message | undefined): boolean {
176 return (
177 message?.type === 'assistant' &&
178 message.message.content.length > 0 &&
179 message.message.content.every(
180 block =>
181 block.type === 'thinking' || block.type === 'redacted_thinking',
182 )
183 )
184}
185
186/**
187 * The rules of thinking are lengthy and fortuitous. They require plenty of thinking

Callers 1

queryLoopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected