We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e50b4e0 commit be19d45Copy full SHA for be19d45
backend/src/tools/handlers/tool/set-output.ts
@@ -52,7 +52,7 @@ export const handleSetOutput = ((params: {
52
try {
53
agentTemplate.outputSchema.parse(output)
54
} catch (error) {
55
- const errorMessage = `Output validation failed for agent ${agentState.agentType}: ${error}`
+ const errorMessage = `Output validation error: Output failed to match the output schema and was ignored. You might want to try again! Issues: ${error}`
56
logger.error(
57
{
58
output,
@@ -62,7 +62,7 @@ export const handleSetOutput = ((params: {
62
},
63
'set_output validation error',
64
)
65
- throw new Error(errorMessage)
+ return errorMessage
66
}
67
68
0 commit comments