Package org.machanism.machai.ai.tools
Interface ToolFunction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface representing a tool callable by a provider during a run.
-
Method Summary
-
Method Details
-
apply
Executes the tool.- Parameters:
params- provider-specific parameters- Returns:
- tool result (provider-specific; commonly serialized to JSON)
- Throws:
IOException- if tool execution fails
-