Interface ToolDefinition
- All Known Implementing Classes:
DefaultToolDefinition
public interface ToolDefinition
Definition used by the AI model to determine when and how to call the tool.
- Since:
- 1.0.0
- Author:
- Thomas Vitale
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a defaultToolDefinition
builder.The tool description, used by the AI model to determine what the tool does.static ToolDefinition
Create a defaultToolDefinition
instance from aMethod
.The JSON Schema of the parameters used to call the tool.name()
The tool name.
-
Method Details
-
name
String name()The tool name. Unique within the tool set provided to a model. -
description
String description()The tool description, used by the AI model to determine what the tool does. -
inputTypeSchema
String inputTypeSchema()The JSON Schema of the parameters used to call the tool. -
builder
Create a defaultToolDefinition
builder. -
from
Create a defaultToolDefinition
instance from aMethod
.
-