File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @mcpc/core" ,
3- "version" : " 0.1.1-beta.5 " ,
3+ "version" : " 0.1.1-beta.6 " ,
44 "tasks" : {
55 "server:compile" : " echo \" no need to compile\" " ,
66 "test" : " deno test --allow-env --allow-read tests/" ,
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export class WorkflowSamplingExecutor extends BaseSamplingExecutor {
5454 content : [
5555 {
5656 type : "text" ,
57- text : CompiledPrompts . errorResponse ( {
57+ text : CompiledPrompts . workflowErrorResponse ( {
5858 errorMessage : validationResult . error || "Validation failed" ,
5959 } ) ,
6060 } ,
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ export class WorkflowExecutor {
159159 content : [
160160 {
161161 type : "text" ,
162- text : CompiledPrompts . errorResponse ( {
162+ text : CompiledPrompts . workflowErrorResponse ( {
163163 errorMessage : validationResult . error ||
164164 "Arguments validation failed" ,
165165 } ) ,
Original file line number Diff line number Diff line change @@ -304,7 +304,9 @@ Choose the next action that best advances toward completing the user's request.`
304304 /**
305305 * Error response template
306306 */
307- ERROR_RESPONSE : `Action/Function argument validation failed: {errorMessage}` ,
307+ ERROR_RESPONSE : `Action argument validation failed: {errorMessage}` ,
308+ WORKFLOW_ERROR_RESPONSE : `Action argument validation failed: {errorMessage}
309+ Set \`proceed: false\` to retry the current step.` ,
308310
309311 /**
310312 * Completion message
@@ -364,6 +366,7 @@ export const CompiledPrompts = {
364366 actionSuccess : p ( ResponseTemplates . ACTION_SUCCESS ) ,
365367 planningPrompt : p ( ResponseTemplates . PLANNING_PROMPT ) ,
366368 errorResponse : p ( ResponseTemplates . ERROR_RESPONSE ) ,
369+ workflowErrorResponse : p ( ResponseTemplates . ERROR_RESPONSE ) ,
367370 securityPassed : p ( ResponseTemplates . SECURITY_VALIDATION . PASSED ) ,
368371 securityFailed : p ( ResponseTemplates . SECURITY_VALIDATION . FAILED ) ,
369372 auditLog : p ( ResponseTemplates . AUDIT_LOG ) ,
You can’t perform that action at this time.
0 commit comments