{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/honeyhive-ai/json-schema/honeyhive-ai-post-event-request-schema.json",
  "title": "PostEventRequest",
  "description": "Request body for POST /v1/events (bare event object)",
  "x-generated": "2026-12-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/honeyhive-ai-openapi.json#/components/schemas/PostEventRequest",
  "type": "object",
  "properties": {
    "project_id": {
      "type": "string",
      "description": "Project ID"
    },
    "source": {
      "type": "string",
      "description": "Source of the event (e.g., sdk-python)"
    },
    "event_name": {
      "type": "string",
      "description": "Name of the event"
    },
    "event_type": {
      "type": "string",
      "enum": [
        "model",
        "tool",
        "chain",
        "session"
      ],
      "description": "Type of event (model, tool, chain, or session)"
    },
    "event_id": {
      "type": "string",
      "description": "Unique event identifier"
    },
    "session_id": {
      "type": "string",
      "description": "Session this event belongs to"
    },
    "parent_id": {
      "type": "string",
      "description": "Parent event ID in the trace hierarchy"
    },
    "children_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Child event IDs in the trace hierarchy"
    },
    "config": {
      "type": "object",
      "additionalProperties": {},
      "description": "Configuration used for this event"
    },
    "inputs": {
      "type": "object",
      "additionalProperties": {},
      "description": "Input data for the event"
    },
    "outputs": {
      "type": "object",
      "additionalProperties": {},
      "description": "Output data from the event"
    },
    "error": {
      "type": [
        "string",
        "null"
      ],
      "description": "Error message if the event failed"
    },
    "start_time": {
      "type": "number",
      "description": "Event start time as Unix milliseconds"
    },
    "end_time": {
      "type": "number",
      "description": "Event end time as Unix milliseconds"
    },
    "duration": {
      "type": "number",
      "description": "Event duration in milliseconds"
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {},
      "description": "Arbitrary metadata for the event"
    },
    "feedback": {
      "type": "object",
      "additionalProperties": {},
      "description": "Feedback data associated with the event"
    },
    "metrics": {
      "type": "object",
      "additionalProperties": {},
      "description": "Metric values computed for the event"
    },
    "user_properties": {
      "type": "object",
      "additionalProperties": {},
      "description": "User properties associated with the event"
    }
  },
  "required": [
    "event_type",
    "inputs"
  ],
  "additionalProperties": false
}