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 voidAbstractAIProvider.addResource(URI uri, String description, String mimeType, ToolFunction function, ParamDescriptor... paramsDesc) Registers a resource callback for providers that support resource management tools.protected abstract voidAbstractAIProvider.addTool(String name, String description, ToolFunction function, ParamDescriptor... paramsDesc) Adds a tool to the provider.protected ObjectAbstractAIProvider.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
Fields in org.machanism.machai.ai.provider.impl with type parameters of type ToolFunctionModifier and TypeFieldDescriptionprivate final Map<com.anthropic.models.beta.messages.BetaTool.Builder,ToolFunction> AnthropicProvider.toolMapMapping between Anthropic tool definitions and local functions.(package private) final Map<com.openai.models.responses.Tool,ToolFunction> OpenAIProvider.toolMapMaps tools to handler functions.private Map<String,ToolFunction> ToolsProvider.toolMapMap of registered tool functions by tool name.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.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.