Files
openclaw/src/agents/thinking-block.ts
2026-06-22 13:30:22 +08:00

8 lines
245 B
TypeScript

export function isThinkingLikeBlock(block: unknown): boolean {
if (!block || typeof block !== "object") {
return false;
}
const type = (block as { type?: unknown }).type;
return type === "thinking" || type === "redacted_thinking";
}