Skip to main content

LLM Tool Spec

Tool spec describes tools used by LLM.

Spec

The tool spec is a JSON schema file. The JSON schema has two properties, definition and configuration.

Definition

The definition property defines the definition of a tool. It has the following properties.

PropertyDescription
idId of this tool
nameName of this tool
descriptionDescription of this tool
parametersSchema of parameters of this tool
returnTypeSchema of return type of this tool
examplesExamples of using this tool

name and description are required.

Configuration

configuration is a JSON schema which defines the configuration to create a tool.

Java API

Easy LLM Tools provides a Java API to create tools.