HF RL Explorer

The tool context in the AI SDK is currently used only for development-time type safety. No runtime…

The tool context in the AI SDK is currently used only for development-time type safety. No runtime…: a task in LegoFlow-SWE (Harbor dataset). We need a validateToolContext function that validates tool context against the tool’s contextSchema at runtime. This function should accept an object with…

The task

We need a `validateToolContext` function that validates tool context against the tool’s `contextSchema` at runtime. This function should accept an object with `toolName`, `context`, and `contextSchema` properties.

Part of Lego-X/LegoFlow-SWE.