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
description: "Define the current workflow action to be performed",
117
122
enum: allToolNames,
118
123
required: ["action"],
124
+
errorMessage: {
125
+
enum: `Invalid action. Must be one of: ${allToolNames.join(", ")}.`,
126
+
},
119
127
}),
120
128
121
129
forTool: function(): JSONSchema{
@@ -162,6 +170,14 @@ Workflow step definitions - provide ONLY on initial call.
162
170
},
163
171
},
164
172
required: ["userRequest","context"],
173
+
errorMessage: {
174
+
required: {
175
+
userRequest:
176
+
"Missing required field 'userRequest'. Please provide a clear task description.",
177
+
context:
178
+
"Missing required field 'context'. Please provide relevant context (e.g., current working directory).",
179
+
},
180
+
},
165
181
};
166
182
},
167
183
@@ -183,7 +199,8 @@ Workflow step definitions - provide ONLY on initial call.
183
199
required: [toolName],
184
200
errorMessage: {
185
201
required: {
186
-
[toolName]: `Tool "${toolName}" is selected but its parameters are missing. Please provide "${toolName}": { ...parameters }.`,
202
+
[toolName]:
203
+
`Tool "${toolName}" is selected but its parameters are missing. Please provide "${toolName}": { ...parameters }.`,
187
204
},
188
205
},
189
206
},
@@ -205,7 +222,9 @@ Workflow step definitions - provide ONLY on initial call.
205
222
enum: allToolNames,
206
223
description: useToolDescription,
207
224
errorMessage: {
208
-
enum: `Invalid tool name. Available tools: ${allToolNames.join(", ")}.`,
225
+
enum: `Invalid tool name. Available tools: ${
226
+
allToolNames.join(", ")
227
+
}.`,
209
228
},
210
229
},
211
230
hasDefinitions: {
@@ -243,7 +262,10 @@ Workflow step definitions - provide ONLY on initial call.
243
262
required: [USE_TOOL_KEY],
244
263
errorMessage: {
245
264
required: {
246
-
[USE_TOOL_KEY]: `No tool selected. Please specify "${USE_TOOL_KEY}" to select one of: ${allToolNames.join(", ")}. Or use "definitionsOf" with tool names to get their schemas first.`,
265
+
[USE_TOOL_KEY]:
266
+
`No tool selected. Please specify "${USE_TOOL_KEY}" to select one of: ${
267
+
allToolNames.join(", ")
268
+
}. Or use "definitionsOf" with tool names to get their schemas first.`,
0 commit comments