Skip to content

Commit

Permalink
Update error for tool_calls validation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rileytomasek committed Jan 20, 2024
1 parent 74d58f2 commit 1058b8e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/prompt/functions/ai-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,8 @@ export function createAIRunner<Content extends any = string>(args: {
messages.push(
Msg.toolResult(
{
error: {
name: 'ToolArgumentsValidationError',
message: errMessage,
},
message: `There was an error validating the tool arguments. Please check the error message and try again with new arguments.`,
errorMessage: errMessage,
},
toolCall.id
)
Expand Down

0 comments on commit 1058b8e

Please sign in to comment.