diff --git a/core/runtime/src/main/java/io/quarkiverse/langchain4j/runtime/tool/QuarkusToolExecutor.java b/core/runtime/src/main/java/io/quarkiverse/langchain4j/runtime/tool/QuarkusToolExecutor.java index 65b5dd5c8..68d0b6c94 100644 --- a/core/runtime/src/main/java/io/quarkiverse/langchain4j/runtime/tool/QuarkusToolExecutor.java +++ b/core/runtime/src/main/java/io/quarkiverse/langchain4j/runtime/tool/QuarkusToolExecutor.java @@ -42,12 +42,12 @@ public String execute(ToolExecutionRequest toolExecutionRequest, Object memoryId Object[] params = prepareArguments(toolExecutionRequest, invokerInstance.methodMetadata()); try { if (log.isDebugEnabled()) { - log.debugv("Attempting to invoke tool '{0}' with parameters '{1}'", context.tool, Arrays.toString(params)); + log.debugv("Attempting to invoke tool {0} with parameters {1}", context.tool, Arrays.toString(params)); } Object invocationResult = invokerInstance.invoke(context.tool, params); String result = handleResult(invokerInstance, invocationResult); - log.debugv("Tool execution result: '{0}'", result); + log.debugv("Tool execution result: {0}", result); return result; } catch (Exception e) { if (e instanceof IllegalArgumentException) { @@ -86,9 +86,9 @@ private Object[] prepareArguments(ToolExecutionRequest toolExecutionRequest, String argumentsJsonStr = toolExecutionRequest.arguments(); Map argumentsFromRequest; try { - log.debugv("Attempting to convert '{0}' JSON string into args map", argumentsJsonStr); + log.debugv("Attempting to convert {0} JSON string into args map", argumentsJsonStr); argumentsFromRequest = convertJsonToArguments(argumentsJsonStr); - log.debugv("Converted '{0}' JSON string into args map '{1}'", argumentsJsonStr, argumentsFromRequest); + log.debugv("Converted {0} JSON string into args map {1}", argumentsJsonStr, argumentsFromRequest); } catch (JsonProcessingException e) { log.error(e); invalidMethodParams(argumentsJsonStr);