You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/agent-runtime/src/tools/tool-executor.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -130,13 +130,13 @@ function stringInputError(
130
130
parseError?: string,
131
131
): ToolCallError{
132
132
constparseDetails=parseError
133
-
? ` The JSON parser reported: ${parseError}. If the arguments are incomplete, re-issue the full object.`
134
-
: ''
133
+
? ` Parsing as JSON failed: ${parseError}. The arguments may be malformed or incomplete.`
134
+
: ' Parsing succeeded, but the parsed value was still a string.'
135
135
return{
136
136
toolName,
137
137
toolCallId,
138
138
input: {},
139
-
error: `Invalid parameters for ${toolName}: tool arguments were a string, not a JSON object. The runtime tried to parse stringified JSON before validation, but the value was still not a JSON object.${parseDetails} Re-issue the tool call as a JSON object with properly escaped string values.`,
139
+
error: `Invalid parameters for ${toolName}: expected the tool arguments to be an object, but received a string.${parseDetails} Re-issue the tool call with the full arguments object and properly escaped string values.`,
0 commit comments