On August 19, Vercel released version 1.0.76 of the @ai-sdk/sandbox-vercel package, which includes a new feature for managing sandbox sessions. This update allows for greater flexibility in how HarnessAgent instances are initialized and how sessions are created.
Key Points
- The @ai-sdk/sandbox-vercel@1.0.76 package was released on August 19.
- The update introduces a feature to pass a caller-owned
sandboxSessiontoHarnessAgent.createSession(). - This change allows the
sandboxargument to be omitted from theHarnessAgentconstructor when a caller-owned session is provided. - The @ai-sdk/harness package was also updated to version 1.0.76 as a dependency.
Context
According to Vercel, this patch change, identified as fc1970b, enhances the HarnessAgent's functionality within the AI SDK. It specifically addresses how sandbox sessions are managed during the creation of new sessions.
Why It Matters
This update offers developers more control over sandbox session management within the Vercel AI SDK, potentially simplifying the initialization of HarnessAgent and integrating custom session handling. This can lead to more streamlined development workflows and greater flexibility for builders.
What To Do
- Review the updated documentation for
HarnessAgent.createSession()and theHarnessAgentconstructor. - Test passing a caller-owned
sandboxSessionin your existing @ai-sdk/sandbox-vercel implementations. - Note the updated dependency on @ai-sdk/harness@1.0.76.
Keep Exploring
/studio?pack=foundation /atlas/claude-family /atlas/gpt-family