Skip to content

Commit 55acdf1

Browse files
Update packages/mcp-client/src/McpClient.ts
Co-authored-by: célina <[email protected]>
1 parent bbcc13f commit 55acdf1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/mcp-client/src/McpClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ export class McpClient {
197197
} catch (error) {
198198
if (error instanceof SyntaxError) {
199199
toolMessage.content = `Invalid JSON generated by the model: ${error.message}`;
200+
messages.push(toolMessage);
201+
yield toolMessage;
202+
continue;
200203
} else {
201204
throw error;
202205
}

0 commit comments

Comments
 (0)