mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-02 12:13:35 +00:00
8 lines
245 B
TypeScript
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";
|
|
}
|