Interface IToolProvider
- All Superinterfaces:
IParametersProvider
Interface for tool providers used in the context of a language model configuration
Tool providers are responsible for executing specific tools and returning results
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.axemble.vdoc.sdk.ai.IParametersProvider
IParametersProvider.Parameter -
Method Summary
Modifier and TypeMethodDescriptionExecute the tool with the given parametersvoidinitialize(IContext userContext, IAssistant assistant, Properties parameters, IToolConfiguration toolConfiguration) Initialize the tool provider with the given context, assistant, parameters and tool configurationGet the tool configuration schema : list of parameters to be retrieved by AI to trigger toolMethods inherited from interface com.axemble.vdoc.sdk.ai.IParametersProvider
getParameters
-
Method Details
-
initialize
void initialize(IContext userContext, IAssistant assistant, Properties parameters, IToolConfiguration toolConfiguration) Initialize the tool provider with the given context, assistant, parameters and tool configuration- Parameters:
userContext- context of the userassistant- assistant instanceparameters- parameters for the tool providertoolConfiguration- configuration of the tool
-
schema
Get the tool configuration schema : list of parameters to be retrieved by AI to trigger tool- Parameters:
language- language to be used in schema description- Returns:
- ToolConfiguration object
-
execute
Execute the tool with the given parameters- Parameters:
memoryId- id of chat memoryarguments- arguments retrieved from the schema by AI- Returns:
- result of the tool execution
-