Represents a JSON object in the LangChain framework. Provides methods to get keys and values from the JSON object.

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

maxValueLength: number = 4000

Methods

  • Retrieves all keys at a given path in the JSON object.

    Parameters

    • input: string

      The path to the keys in the JSON object, provided as a string in JSON pointer syntax.

    Returns string

    A string containing all keys at the given path, separated by commas.

  • Retrieves the value at a given path in the JSON object.

    Parameters

    • input: string

      The path to the value in the JSON object, provided as a string in JSON pointer syntax.

    Returns string

    The value at the given path in the JSON object, as a string. If the value is a large dictionary or exceeds the maximum length, a message is returned instead.

Generated using TypeDoc