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

Example

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

Constructors

Properties

Constructors

Properties

jsonSpec: JsonSpec
tools: ToolInterface[]

Generated using TypeDoc