The input type of the original tool
The output type of the original tool
The input type of the transformed tool (defaults to InputType)
The output type of the transformed tool (defaults to OutputType)
Transform the tool into a new tool. This method ensures type alignment between the execute function and input schema.
The original Tool2Agent to transform
The transformed Tool2Agent
Options for configuring middleware transformations. Uses a single
transformfunction that transforms a Tool2Agent into another Tool2Agent, ensuring type alignment between execute function and input schema.