Skip to content

Commit 576520e

Browse files
committed
Add type validation error as one to be passed back into agent
1 parent 7fd5d37 commit 576520e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sdk/src/impl/llm.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import {
2626
APICallError,
2727
ToolCallRepairError,
2828
InvalidToolInputError,
29+
TypeValidationError,
2930
} from 'ai'
3031

3132
import { WEBSITE_URL } from '../constants'
@@ -370,7 +371,8 @@ export async function* promptAiSdkStream(
370371
if (
371372
NoSuchToolError.isInstance(chunkValue.error) ||
372373
InvalidToolInputError.isInstance(chunkValue.error) ||
373-
ToolCallRepairError.isInstance(chunkValue.error)
374+
ToolCallRepairError.isInstance(chunkValue.error) ||
375+
TypeValidationError.isInstance(chunkValue.error)
374376
) {
375377
logger.warn(
376378
{

0 commit comments

Comments
 (0)