@runloop/agent-axon-client
    Preparing search index...

    Function isClaudeAssistantTextEvent

    • Type guard for Claude assistant message events containing non-empty text.

      This is a compound guard that narrows to ClaudeAssistantTimelineEvent AND verifies the message contains at least one text block with non-whitespace content. Replaces the common pattern:

      if (event.kind === "claude_protocol" && event.eventType === "assistant") {
      if (event.data.message.content.some((b) => b.type === "text" && b.text.trim().length > 0)) {
      // ...
      }
      }

      Parameters

      Returns event is ClaudeAssistantTimelineEvent

      true if event is an assistant event with at least one non-empty text block.