Package org.machanism.machai.ai.provider.tools


package org.machanism.machai.ai.provider.tools
Provides an AI provider implementation that exposes registered application tools for structured invocation.

This package contains the tools-oriented provider used by the MachAI provider layer to collect prompts, register ToolFunction instances, and execute those functions from structured request data. The primary implementation, ToolsProvider, extends the common provider abstraction and supports YAML-based tool call descriptions that identify a tool name and supply the parameters passed to the selected tool.

Classes in this package are intended for internal provider orchestration where host-defined tool functions need to be made available through the same provider lifecycle used by other AI integrations. A typical YAML tool call contains a tool entry naming the registered function and a params entry containing the function arguments.

Example YAML request consumed by the provider:

 tool: exampleTool
 params:
   name: sample
   enabled: true
 
See Also: