Represents a toolkit for working with JSON data. It initializes the
JSON tools based on the provided JSON specification.
Example
consttoolkit = newJsonToolkit(newJsonSpec()); constexecutor = createJsonAgent(model, toolkit); constresult = awaitexecutor.invoke({ input:'What are the required parameters in the request body to the /completions endpoint?' });
Represents a toolkit for working with JSON data. It initializes the JSON tools based on the provided JSON specification.
Example