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

Hierarchy

  • BaseOutputParser<Date>
    • DatetimeOutputParser

Constructors

Properties

Methods

Constructors

  • Parameters

    • Optional kwargs: SerializedFields
    • Rest ..._args: never[]

    Returns DatetimeOutputParser

Properties

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

ISO 8601 date time standard.

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.

Generated using TypeDoc