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
@@ -96,13 +96,7 @@ export abstract class BaseSamplingExecutor {
96
96
role: "assistant",
97
97
content: {
98
98
type: "text",
99
-
text: `Executing with arguments: ${
100
-
JSON.stringify(
101
-
parsedData,
102
-
null,
103
-
2,
104
-
)
105
-
}`,
99
+
text: JSON.stringify(parsedData,null,2),
106
100
},
107
101
});
108
102
}
@@ -137,7 +131,7 @@ export abstract class BaseSamplingExecutor {
137
131
138
132
protectedaddParsingErrorToHistory(
139
133
responseText: string,
140
-
parseError: unknown,
134
+
parseError: unknown
141
135
): void{
142
136
this.conversationHistory.push({
143
137
role: "assistant",
@@ -168,8 +162,7 @@ export abstract class BaseSamplingExecutor {
168
162
{
169
163
type: "text",
170
164
text: CompiledPrompts.errorResponse({
171
-
errorMessage:
172
-
`Execution reached maximum iterations (${this.maxIterations}). Please try with a more specific request or break down the task into smaller parts.`,
165
+
errorMessage: `Execution reached maximum iterations (${this.maxIterations}). Please try with a more specific request or break down the task into smaller parts.`,
173
166
}),
174
167
},
175
168
],
@@ -240,7 +233,7 @@ ${text}
240
233
241
234
protectedlogIterationProgress(
242
235
parsedData: Record<string,unknown>,
243
-
result: CallToolResult,
236
+
result: CallToolResult
244
237
): void{
245
238
// Optional: Log iteration progress for debugging
246
239
console.log(
@@ -249,15 +242,16 @@ ${text}
249
242
parsedData,
250
243
isError: result.isError,
251
244
isComplete: result.isComplete,
252
-
},
245
+
result: inspect(result),
246
+
}
253
247
);
254
248
}
255
249
256
250
// Abstract methods that subclasses must implement
0 commit comments