Member Junction
    Preparing search index...
    • Build the complete Block Kit layout for an agent response.

      Layout:

      [Agent Context Header]     — agent avatar + name
      [Divider]
      [Text Content Blocks] — markdownmrkdwn sections
      [Artifact Card] — if structured payload detected
      [Media Blocks] — if mediaOutputs present
      [Notification Blocks] — if automatic notification commands present
      [Divider]
      [Action Buttons] — if actionableCommands present
      [Metadata Footer] — timing and token info

      Enforces Slack's 50-block limit. If exceeded, truncates text blocks and adds a truncation notice.

      Parameters

      Returns Record<string, unknown>[]