PostHog · Schema

TestHogResultItem

A/B TestingAnalyticsFeature FlagsOpen-SourceProduct AnalyticsSession Recording

Properties

Name Type Description
event_uuid string UUID of the $ai_generation event.
trace_id string Trace ID if available.
input_preview string First 200 chars of the generation input.
output_preview string First 200 chars of the generation output.
result boolean True = pass, False = fail, null = N/A or error.
reasoning string Hog evaluation reasoning string, if any.
error string Error message if the Hog code raised an exception.
View JSON Schema on GitHub

JSON Schema

posthog-testhogresultitem-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/TestHogResultItem",
  "title": "TestHogResultItem",
  "type": "object",
  "properties": {
    "event_uuid": {
      "type": "string",
      "description": "UUID of the $ai_generation event."
    },
    "trace_id": {
      "type": "string",
      "nullable": true,
      "description": "Trace ID if available."
    },
    "input_preview": {
      "type": "string",
      "description": "First 200 chars of the generation input."
    },
    "output_preview": {
      "type": "string",
      "description": "First 200 chars of the generation output."
    },
    "result": {
      "type": "boolean",
      "nullable": true,
      "description": "True = pass, False = fail, null = N/A or error."
    },
    "reasoning": {
      "type": "string",
      "nullable": true,
      "description": "Hog evaluation reasoning string, if any."
    },
    "error": {
      "type": "string",
      "nullable": true,
      "description": "Error message if the Hog code raised an exception."
    }
  },
  "required": [
    "error",
    "event_uuid",
    "input_preview",
    "output_preview",
    "reasoning",
    "result"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/posthog-testhogresultitem"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.