Uses of Interface
org.machanism.machai.ai.tools.ToolFunction
Packages that use ToolFunction
Package
Description
Defines the provider abstraction layer used by Machai to integrate with
concrete generative AI platforms through a consistent application-facing API.
Provides concrete implementations of the Machai generative AI provider
abstraction.
-
Uses of ToolFunction in org.machanism.machai.ai.provider
Methods in org.machanism.machai.ai.provider with parameters of type ToolFunctionModifier and TypeMethodDescriptionprotected voidAbstractAIProvider.addPrompt(String name, String description, ToolFunction function, Role role, ParamDescriptor... paramsDesc) Registers a prompt callback for providers that support prompt tools.protected abstract voidAbstractAIProvider.addTool(String name, String description, ToolFunction function, ParamDescriptor... paramsDesc) Adds a tool to the provider.protected StringAbstractAIProvider.safelyInvokeTool(String name, ToolFunction tool, com.fasterxml.jackson.databind.JsonNode params, File projectDir) Safely invokes a tool function and convertsIOExceptions into a textual error payload suitable for the model conversation. -
Uses of ToolFunction in org.machanism.machai.ai.provider.impl
Methods in org.machanism.machai.ai.provider.impl with parameters of type ToolFunctionModifier and TypeMethodDescriptionprotected voidAnthropicProvider.addTool(String name, String description, ToolFunction function, ParamDescriptor... paramsDesc) Registers a local function tool that Anthropic may request during response generation.protected voidOpenAIProvider.addTool(String name, String description, ToolFunction function, ParamDescriptor... paramsDesc) Registers a function tool for the current provider instance.protected voidToolsProvider.addTool(String name, String description, ToolFunction function, ParamDescriptor... paramsDesc) Registers a tool function with the provider.