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

Hierarchy

  • Toolkit<Date>
    • DatetimeOutputParser

Constructors

Properties

Methods

Constructors

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