HoneyHive TypeScript API SDK
    Preparing search index...

    Type Alias CreateEventRequest

    Request to create a new event

    type CreateEventRequest = {
        event: {
            children_ids?: string[];
            config?: { [key: string]: unknown };
            duration?: number;
            end_time?: number;
            error?: string | null;
            event_id?: string;
            event_name?: string;
            event_type: "model" | "tool" | "chain" | "session";
            feedback?: { [key: string]: unknown };
            inputs: { [key: string]: unknown };
            metadata?: { [key: string]: unknown };
            metrics?: { [key: string]: unknown };
            outputs?: { [key: string]: unknown };
            parent_id?: string;
            project?: string;
            project_id?: string;
            session_id?: string;
            source?: string;
            start_time?: number;
            user_properties?: { [key: string]: unknown };
        } & { [key: string]: unknown };
    }
    Index

    Properties

    Properties

    event: {
        children_ids?: string[];
        config?: { [key: string]: unknown };
        duration?: number;
        end_time?: number;
        error?: string | null;
        event_id?: string;
        event_name?: string;
        event_type: "model" | "tool" | "chain" | "session";
        feedback?: { [key: string]: unknown };
        inputs: { [key: string]: unknown };
        metadata?: { [key: string]: unknown };
        metrics?: { [key: string]: unknown };
        outputs?: { [key: string]: unknown };
        parent_id?: string;
        project?: string;
        project_id?: string;
        session_id?: string;
        source?: string;
        start_time?: number;
        user_properties?: { [key: string]: unknown };
    } & { [key: string]: unknown }

    Type Declaration

    • Optionalchildren_ids?: string[]

      Child event IDs in the trace hierarchy

    • Optionalconfig?: { [key: string]: unknown }

      Configuration used for this event

    • Optionalduration?: number

      Event duration in milliseconds

    • Optionalend_time?: number

      Event end time as Unix milliseconds

    • Optionalerror?: string | null

      Error message if the event failed

    • Optionalevent_id?: string

      Unique event identifier

    • Optionalevent_name?: string

      Name of the event

    • event_type: "model" | "tool" | "chain" | "session"
    • Optionalfeedback?: { [key: string]: unknown }

      Feedback data associated with the event

    • inputs: { [key: string]: unknown }
    • Optionalmetadata?: { [key: string]: unknown }

      Arbitrary metadata for the event

    • Optionalmetrics?: { [key: string]: unknown }

      Metric values computed for the event

    • Optionaloutputs?: { [key: string]: unknown }

      Output data from the event

    • Optionalparent_id?: string

      Parent event ID in the trace hierarchy

    • Optionalproject?: string

      Project name (ignored by server — project is determined from API key scope)

    • Optionalproject_id?: string

      Project ID

    • Optionalsession_id?: string

      Session this event belongs to

    • Optionalsource?: string

      Source of the event (e.g., sdk-python)

    • Optionalstart_time?: number

      Event start time as Unix milliseconds

    • Optionaluser_properties?: { [key: string]: unknown }

      User properties associated with the event

    • [key: string]: unknown

    Full event object for legacy event creation endpoints