spring-ai-alibaba-jmanus/src/main/java/org/springframework/ai/tool/function/FunctionToolCallback.java [98:116]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	public String call(String toolInput, @Nullable ToolContext toolContext) {
		Assert.hasText(toolInput, "toolInput cannot be null or empty");

		logger.debug("Starting execution of tool: {}", toolDefinition.name());

		// TODO, fix issue https://github.com/spring-projects/spring-ai/issues/2497
		I request;
		if (toolInputType == String.class) {
			request = (I) toolInput;
		}
		else {
			request = JsonParser.fromJson(toolInput, toolInputType);
		}
		O response = toolFunction.apply(request, toolContext);

		logger.debug("Successful execution of tool: {}", toolDefinition.name());

		return toolCallResultConverter.convert(response, null);
	}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



spring-ai-alibaba-graph/spring-ai-alibaba-graph-example/src/main/java/org/springframework/ai/tool/function/FunctionToolCallback.java [98:116]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	public String call(String toolInput, @Nullable ToolContext toolContext) {
		Assert.hasText(toolInput, "toolInput cannot be null or empty");

		logger.debug("Starting execution of tool: {}", toolDefinition.name());

		// TODO, fix issue https://github.com/spring-projects/spring-ai/issues/2497
		I request;
		if (toolInputType == String.class) {
			request = (I) toolInput;
		}
		else {
			request = JsonParser.fromJson(toolInput, toolInputType);
		}
		O response = toolFunction.apply(request, toolContext);

		logger.debug("Successful execution of tool: {}", toolDefinition.name());

		return toolCallResultConverter.convert(response, null);
	}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



