langchain.js
    Preparing search index...

    Class to parse the output of an LLM call to a date.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    format: string = "YYYY-MM-DDTHH:mm:ssZ"

    ISO 8601 date time standard.

    lc_namespace: string[] = ...
    lc_serializable: boolean = true

    Methods

    • Provides instructions on the expected format of the response for the CommaSeparatedListOutputParser.

      Returns string

      A string containing instructions on the expected format of the response.

    • Parses the given text into a Date. If the parsing fails, throws an OutputParserException.

      Parameters

      • text: string

        The text to parse.

      Returns Promise<Date>

      A date object.

    • Returns string