PostHog · Schema

LLMTrace

A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording

Properties

Name Type Description
aiSessionId string
createdAt string
distinctId string
errorCount number
events array
id string
inputCost number
inputState object
inputTokens number
isSupportTrace boolean
outputCost number
outputState object
outputTokens number
person object
requestCost number
tools array
totalCost number
totalLatency number
traceName string
webSearchCost number
View JSON Schema on GitHub

JSON Schema

posthog-llmtrace-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/LLMTrace",
  "title": "LLMTrace",
  "additionalProperties": false,
  "properties": {
    "aiSessionId": {
      "default": null,
      "title": "Aisessionid",
      "type": "string",
      "nullable": true
    },
    "createdAt": {
      "title": "Createdat",
      "type": "string"
    },
    "distinctId": {
      "title": "Distinctid",
      "type": "string"
    },
    "errorCount": {
      "default": null,
      "title": "Errorcount",
      "type": "number",
      "nullable": true
    },
    "events": {
      "items": {
        "$ref": "#/components/schemas/LLMTraceEvent"
      },
      "title": "Events",
      "type": "array"
    },
    "id": {
      "title": "Id",
      "type": "string"
    },
    "inputCost": {
      "default": null,
      "title": "Inputcost",
      "type": "number",
      "nullable": true
    },
    "inputState": {
      "default": null,
      "title": "Inputstate",
      "nullable": true
    },
    "inputTokens": {
      "default": null,
      "title": "Inputtokens",
      "type": "number",
      "nullable": true
    },
    "isSupportTrace": {
      "default": null,
      "title": "Issupporttrace",
      "type": "boolean",
      "nullable": true
    },
    "outputCost": {
      "default": null,
      "title": "Outputcost",
      "type": "number",
      "nullable": true
    },
    "outputState": {
      "default": null,
      "title": "Outputstate",
      "nullable": true
    },
    "outputTokens": {
      "default": null,
      "title": "Outputtokens",
      "type": "number",
      "nullable": true
    },
    "person": {
      "default": null,
      "allOf": [
        {
          "$ref": "#/components/schemas/LLMTracePerson"
        }
      ],
      "nullable": true
    },
    "requestCost": {
      "default": null,
      "title": "Requestcost",
      "type": "number",
      "nullable": true
    },
    "tools": {
      "default": null,
      "title": "Tools",
      "items": {
        "type": "string"
      },
      "type": "array",
      "nullable": true
    },
    "totalCost": {
      "default": null,
      "title": "Totalcost",
      "type": "number",
      "nullable": true
    },
    "totalLatency": {
      "default": null,
      "title": "Totallatency",
      "type": "number",
      "nullable": true
    },
    "traceName": {
      "default": null,
      "title": "Tracename",
      "type": "string",
      "nullable": true
    },
    "webSearchCost": {
      "default": null,
      "title": "Websearchcost",
      "type": "number",
      "nullable": true
    }
  },
  "required": [
    "createdAt",
    "distinctId",
    "events",
    "id"
  ],
  "type": "object"
}