Allow the user to send context with approval or rejection

This commit is contained in:
Nathan Apter
2025-01-29 10:21:36 -05:00
parent fc688bbe8e
commit 3aa5b3f9be
2 changed files with 12 additions and 21 deletions

View File

@@ -8,6 +8,9 @@ export const formatResponse = {
toolDeniedWithFeedback: (feedback?: string) =>
`The user denied this operation and provided the following feedback:\n<feedback>\n${feedback}\n</feedback>`,
toolApprovedWithFeedback: (feedback?: string) =>
`The user approved this operation and provided the following context:\n<feedback>\n${feedback}\n</feedback>`,
toolError: (error?: string) => `The tool execution failed with the following error:\n<error>\n${error}\n</error>`,
noToolsUsed: () =>