invokeInternal method

  1. @override
Future<String> invokeInternal(
  1. String toolInput, {
  2. ToolOptions? options,
})
override

Actual implementation of invoke method logic with string input.

Implementation

@override
Future<String> invokeInternal(
  final String toolInput, {
  final ToolOptions? options,
}) async {
  try {
    return toolInput;
  } catch (e) {
    return "I don't know how to do that.";
  }
}