langchain.js
    Preparing search index...

    Represents a toolkit for working with JSON data. It initializes the JSON tools based on the provided JSON specification.

    const toolkit = new JsonToolkit(new JsonSpec());
    const executor = createJsonAgent(model, toolkit);
    const result = await executor.invoke({
    input: 'What are the required parameters in the request body to the /completions endpoint?'
    });

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      Returns JsonToolkit

    Properties

    jsonSpec: JsonSpec
    tools: ToolInterface[]