Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

463 B
Raw Blame
# LangChain / LangGraph: `type` instead of `role`. `.content` may be an arbitrary
# object, so it goes through `stringify` (strings/arrays pass through unchanged).

id: langchain

rules:
    - on:
          role: { exists: false }
          type: { in: [human, ai, tool, system, context] }
          content: { exists: true }
      emit:
          content:
              stringify: $.content
          toolCalls: $.tool_calls
          toolCallId: $.tool_call_id