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.
Property | Description |
---|---|
id | Id of this tool |
name | Name of this tool |
description | Description of this tool |
parameters | Schema of parameters of this tool |
returnType | Schema of return type of this tool |
examples | Examples 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.