Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,9 @@ private Mono<ToolResultBlock> executeCore(ToolCallParam param) {
String errorMsg =
String.format(
"Parameter validation failed for tool '%s': %s\n"
+ "Actual content: %s\n"
+ "Please correct the parameters and try again.",
toolCall.getName(), validationError);
toolCall.getName(), validationError, toolCall.getContent());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ToolUseBlock will still send to model in next turn.

logger.debug(errorMsg);
return Mono.just(ToolResultBlock.error(errorMsg));
}
Expand Down
Loading