Package com.axemble.vdoc.sdk.ai.tool
Interface IToolSchema
public interface IToolSchema
Interface for defining the schema of a tool
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddBooleanProperty(String name) Add a boolean property to the tool schemavoidaddBooleanProperty(String name, String description) Add a boolean property to the tool schema with a descriptionvoidaddEnumProperty(String name, List<String> enumValues) Add an enum property to the tool schemavoidaddEnumProperty(String name, List<String> enumValues, String description) Add an enum property to the tool schema with a descriptionvoidaddIntegerProperty(String name) Add an integer property to the tool schemavoidaddIntegerProperty(String name, String description) Add an integer property to the tool schema with a descriptionvoidadditionalProperties(Boolean additionalProperties) Allow additional properties in the tool schemavoidaddNumberProperty(String name) Add a number property to the tool schemavoidaddNumberProperty(String name, String description) Add a number property to the tool schema with a descriptionvoidaddStringProperty(String name) Add a string property to the tool schemavoidaddStringProperty(String name, String description) Add a string property to the tool schema with a descriptionvoidSpecify required properties for the tool schemavoidSpecify required properties for the tool schemavoidsetDescription(String description) Set tool description
-
Method Details
-
setDescription
Set tool description- Parameters:
description- the description of the tool
-
addStringProperty
Add a string property to the tool schema- Parameters:
name- the name of the property
-
addStringProperty
Add a string property to the tool schema with a description- Parameters:
name- the name of the propertydescription- the description of the property
-
addIntegerProperty
Add an integer property to the tool schema- Parameters:
name- the name of the property
-
addIntegerProperty
Add an integer property to the tool schema with a description- Parameters:
name- the name of the propertydescription- the description of the property
-
addNumberProperty
Add a number property to the tool schema- Parameters:
name- the name of the property
-
addNumberProperty
Add a number property to the tool schema with a description- Parameters:
name- the name of the propertydescription- the description of the property
-
addBooleanProperty
Add a boolean property to the tool schema- Parameters:
name- the name of the property
-
addBooleanProperty
Add a boolean property to the tool schema with a description- Parameters:
name- the name of the propertydescription- the description of the property
-
addEnumProperty
Add an enum property to the tool schema- Parameters:
name- the name of the propertyenumValues- the list of possible values for the enum
-
addEnumProperty
Add an enum property to the tool schema with a description- Parameters:
name- the name of the propertyenumValues- the list of possible values for the enumdescription- the description of the property
-
required
Specify required properties for the tool schema- Parameters:
required- the list of required property names
-
required
Specify required properties for the tool schema- Parameters:
required- the array of required property names
-
additionalProperties
Allow additional properties in the tool schema- Parameters:
additionalProperties- true to allow additional properties, false otherwise
-