Releases: TanStack/ai
@tanstack/solid-ai-devtools@0.2.33
Patch Changes
- Updated dependencies []:
- @tanstack/ai-devtools-core@0.3.29
@tanstack/react-ai-devtools@0.2.33
Patch Changes
- Updated dependencies []:
- @tanstack/ai-devtools-core@0.3.29
@tanstack/preact-ai-devtools@0.1.33
Patch Changes
- Updated dependencies []:
- @tanstack/ai-devtools-core@0.3.29
@tanstack/openai-base@0.3.1
@tanstack/ai@0.18.0
Minor Changes
-
Breaking: AG-UI client-to-server compliance. (#511)
@tanstack/ai-clientnow POSTs an AG-UIRunAgentInputrequest body and@tanstack/aiserver endpoints must use the newchatParamsFromRequestBody+mergeAgentToolshelpers. Upgrade both packages together.Highlights:
- Wire format:
{threadId, runId, state, messages, tools, context, forwardedProps}(per AG-UI 0.0.52RunAgentInputSchema) instead of{messages, data}. - New server helpers exported from
@tanstack/ai:chatParamsFromRequestBody,mergeAgentTools. chat()acceptsthreadId,runId,parentRunIdas optional fields for AG-UI run correlation.ChatClientacceptsthreadIdoption; auto-generates and persists per session if omitted; freshrunIdper send.- Client tools auto-advertised to the server via
RunAgentInput.tools. - Foreign AG-UI clients can hit a TanStack server:
developercollapses tosystem,reasoning/activitydrop.
See
docs/migration/ag-ui-compliance.mdfor full migration steps. - Wire format:
Patch Changes
-
fix(ai): infer Zod-typed
outputSchemainstead of collapsing tounknown(#563)chat({ outputSchema: zodSchema })previously returnedPromise<unknown>(and
StructuredOutputCompleteEvent<T>resolved withT = unknown) because
InferSchemaTypeonly matchedStandardJSONSchemaV1. Zod's core$ZodType
declares~standardasStandardSchemaV1.Props— without a type-level
jsonSchemaconverter — so Zod schemas (and any other library that exposes
only the Standard Schema validator surface to the type checker) fell through
tounknown, forcing callers to either cast or run a redundantschema.parse().SchemaInputnow also acceptsStandardSchemaV1<any, any>, and
InferSchemaTyperecovers the input type from that branch when the
JSON-schema branch doesn't match. The runtime path is unchanged for Zod /
ArkType / Valibot (convertSchemaToJsonSchemastill detects the runtime
~standard.jsonSchemaconverter); only the static types are widened.convertSchemaToJsonSchemanow throws an actionable error when given a
Standard Schema validator that lacks a JSON-schema converter, instead of
silently shipping the raw{ '~standard': ... }object to the LLM provider.Closes #562
-
Updated dependencies []:
- @tanstack/ai-event-client@0.3.2
@tanstack/ai-vue@0.9.0
Minor Changes
-
Breaking: AG-UI client-to-server compliance. (#511)
@tanstack/ai-clientnow POSTs an AG-UIRunAgentInputrequest body and@tanstack/aiserver endpoints must use the newchatParamsFromRequestBody+mergeAgentToolshelpers. Upgrade both packages together.Highlights:
- Wire format:
{threadId, runId, state, messages, tools, context, forwardedProps}(per AG-UI 0.0.52RunAgentInputSchema) instead of{messages, data}. - New server helpers exported from
@tanstack/ai:chatParamsFromRequestBody,mergeAgentTools. chat()acceptsthreadId,runId,parentRunIdas optional fields for AG-UI run correlation.ChatClientacceptsthreadIdoption; auto-generates and persists per session if omitted; freshrunIdper send.- Client tools auto-advertised to the server via
RunAgentInput.tools. - Foreign AG-UI clients can hit a TanStack server:
developercollapses tosystem,reasoning/activitydrop.
See
docs/migration/ag-ui-compliance.mdfor full migration steps. - Wire format:
Patch Changes
@tanstack/ai-vue-ui@0.1.35
Patch Changes
- Updated dependencies [
a9d1916]:- @tanstack/ai-vue@0.9.0
@tanstack/ai-svelte@0.9.0
Minor Changes
-
Breaking: AG-UI client-to-server compliance. (#511)
@tanstack/ai-clientnow POSTs an AG-UIRunAgentInputrequest body and@tanstack/aiserver endpoints must use the newchatParamsFromRequestBody+mergeAgentToolshelpers. Upgrade both packages together.Highlights:
- Wire format:
{threadId, runId, state, messages, tools, context, forwardedProps}(per AG-UI 0.0.52RunAgentInputSchema) instead of{messages, data}. - New server helpers exported from
@tanstack/ai:chatParamsFromRequestBody,mergeAgentTools. chat()acceptsthreadId,runId,parentRunIdas optional fields for AG-UI run correlation.ChatClientacceptsthreadIdoption; auto-generates and persists per session if omitted; freshrunIdper send.- Client tools auto-advertised to the server via
RunAgentInput.tools. - Foreign AG-UI clients can hit a TanStack server:
developercollapses tosystem,reasoning/activitydrop.
See
docs/migration/ag-ui-compliance.mdfor full migration steps. - Wire format:
Patch Changes
@tanstack/ai-solid@0.9.0
Minor Changes
-
Breaking: AG-UI client-to-server compliance. (#511)
@tanstack/ai-clientnow POSTs an AG-UIRunAgentInputrequest body and@tanstack/aiserver endpoints must use the newchatParamsFromRequestBody+mergeAgentToolshelpers. Upgrade both packages together.Highlights:
- Wire format:
{threadId, runId, state, messages, tools, context, forwardedProps}(per AG-UI 0.0.52RunAgentInputSchema) instead of{messages, data}. - New server helpers exported from
@tanstack/ai:chatParamsFromRequestBody,mergeAgentTools. chat()acceptsthreadId,runId,parentRunIdas optional fields for AG-UI run correlation.ChatClientacceptsthreadIdoption; auto-generates and persists per session if omitted; freshrunIdper send.- Client tools auto-advertised to the server via
RunAgentInput.tools. - Foreign AG-UI clients can hit a TanStack server:
developercollapses tosystem,reasoning/activitydrop.
See
docs/migration/ag-ui-compliance.mdfor full migration steps. - Wire format:
Patch Changes
@tanstack/ai-solid-ui@0.6.5
Patch Changes
- Updated dependencies [
a9d1916]:- @tanstack/ai-client@0.10.0
- @tanstack/ai-solid@0.9.0