HoneyHive TypeScript API SDK
    Preparing search index...

    Type Alias AddSessionTracesRequest

    Request to add traces to a session

    type AddSessionTracesRequest = {
        logs: (
            {
                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

    logs: (
        {
            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

    • Optionalevent_type?: "model" | "tool" | "chain" | "session"

      Type of event (model, tool, chain, or session)

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

      Feedback data associated with the event

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

      Input data for the event

    • 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