from Function
Create a tool with strongly typed input and output (Java-friendly).
Return
A new Tool instance
Parameters
Input type - will be deserialized from JSON
Output type - will be serialized to JSON
Tool name
Tool description
Class of the input type
Class of the output type
Function that processes typed input and returns typed output
Create a tool with strongly typed input and output with custom metadata (Java-friendly).
Return
A new Tool instance
Parameters
Input type - will be deserialized from JSON
Output type - will be serialized to JSON
Tool name
Tool description
Class of the input type
Class of the output type
Tool metadata
Function that processes typed input and returns typed output
Create a tool with strongly typed input and output with custom ObjectMapper (Java-friendly).
Return
A new Tool instance
Parameters
Input type - will be deserialized from JSON
Output type - will be serialized to JSON
Tool name
Tool description
Class of the input type
Class of the output type
Tool metadata
ObjectMapper for JSON serialization/deserialization
Function that processes typed input and returns typed output