TanStackOSS
    ai
    feat(ai-react,ai-client,ai): per-turn schemas for structured-output chat Builds on the structured-output MessagePart design from PR #577. The hook now accepts `outputSchemas: Record<string, SchemaInput>` and a per-call `sendMessage(content, { schema: 'name' })` option so a single chat surface can multiplex multiple structured artifacts (e.g. recipe vs weekly plan). Each assistant message's structured-output part carries `schemaName` as the runtime discriminator. A new `getStructuredPart(message, name)` helper on the hook return gives a typed view of the part narrowed against the matching schema in `outputSchemas`. Server-side, `chat()` accepts an optional `schemaName` that propagates through `structured-output.start` / `structured-output.complete` events. The client-side StreamProcessor stamps it onto the part automatically. New example: `/generations/structured-multi` in ts-react-chat demonstrates two schemas in one conversation with type-safe render branching. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
    nx run-many --targets=build --exclude=examples/**
Succeeded
CI Pipeline Execution
Linux
4 CPU cores
876cd0e4578
6%

Cache hits

2 of 33 tasks used cache.

Get faster results

Learn how to enable distribution.

Atomizer enabled

33 groups of tasks optimized.

© 2026 - Nx Cloud

Terms of ServicePrivacy PolicyChangelogStatusDocsContact Nx CloudPricingCompany@NxDevTools