(
clientTool: AnyClientTool,
output: any,
)
| 1244 | } |
| 1245 | |
| 1246 | private validateClientToolOutput( |
| 1247 | clientTool: AnyClientTool, |
| 1248 | output: any, |
| 1249 | ): any { |
| 1250 | if (clientTool.outputSchema && isStandardSchema(clientTool.outputSchema)) { |
| 1251 | return parseWithStandardSchema(clientTool.outputSchema, output) |
| 1252 | } |
| 1253 | |
| 1254 | return output |
| 1255 | } |
| 1256 | |
| 1257 | /** |
| 1258 | * Respond to a tool approval request |
no test coverage detected