LogEntry: {
    id: string;
    metadata: Record<string, any>;
    name: string;
    start_time: string;
    streamed_output: any[];
    streamed_output_str: string[];
    tags: string[];
    type: string;
    end_time?: string;
    final_output?: any;
    inputs?: any;
}

Interface that represents the structure of a log entry in the LogStreamCallbackHandler.

Type declaration

  • id: string

    ID of the sub-run.

  • metadata: Record<string, any>

    Key-value pairs of metadata for the run.

  • name: string

    Name of the object being run.

  • start_time: string

    ISO-8601 timestamp of when the run started.

  • streamed_output: any[]

    List of general output chunks streamed by this run.

  • streamed_output_str: string[]

    List of LLM tokens streamed by this run, if applicable.

  • tags: string[]

    List of tags for the run.

  • type: string

    Type of the object being run, eg. prompt, chain, llm, etc.

  • Optional end_time?: string

    ISO-8601 timestamp of when the run ended. Only available after the run has finished.

  • Optional final_output?: any

    Final output of this run. Only available after the run has finished successfully.

  • Optional inputs?: any

    Inputs to this run. Not available currently via streamLog.

Generated using TypeDoc