Vercel has released updates to its AI SDK, specifically for the @ai-sdk/harness family of packages. These updates, released on August 17 at 18:22, introduce support for structured output within the HarnessAgent through a new output property. This functionality is noted across releases for @ai-sdk/harness-grok-build@1.0.10, @ai-sdk/harness-pi@1.0.75, and @ai-sdk/harness-opencode@1.0.74.
Key Points
- The
HarnessAgentnow includes support for structured output. - This new capability is exposed through an
outputproperty. - The change is part of patch updates for
@ai-sdk/harness-grok-build@1.0.10,@ai-sdk/harness-pi@1.0.75, and@ai-sdk/harness-opencode@1.0.74. - The updates were released on August 17 at 18:22.
- Dependencies for
@ai-sdk/harness-acp@1.0.11and@ai-sdk/harness@1.0.73were also updated.
Context
According to the Vercel AI SDK changelog, the core feature addition is feat(harness): add support for structured output to HarnessAgent via output property. This specific feature is identified by commit 62a9c2a. Concurrently, the @ai-sdk/openai-compatible@3.0.31 package received a fix to preserve unmapped usage fields in usage.raw, ensuring that provider-specific details like audio_tokens, image_tokens, and text_tokens are not dropped.
Why It Matters
The addition of structured output to HarnessAgent provides developers with more control over the format of AI model responses, which can simplify downstream processing and integration. The fix in openai-compatible ensures that detailed usage information from various providers is retained, offering more comprehensive data for cost analysis and performance monitoring.
What To Do
- Review the changelog for
@ai-sdk/harness-grok-build@1.0.10,@ai-sdk/harness-pi@1.0.75, or@ai-sdk/harness-opencode@1.0.74to understand the specific implementation of theoutputproperty. - Test the new structured output capabilities in
HarnessAgentwithin your development environment. - Note the update to
@ai-sdk/openai-compatible@3.0.31if you rely on detailed usage reporting from providers.
