Repository navigation
@tanstack/ai@1.7.0
Minor Changes
-
#2186
1aa7227- Add the experimentalgenerate3DModel()activity. It turns text, images, or an existing mesh into a 3D model file, and returns the main model URL plus every mesh and texture file. A media prompt can now carry amodel3dpart, so a step such as retexture can take the mesh of an earlier step.fal3DModel()in@tanstack/ai-falruns the fal 3D endpoints, anduseGenerate3DModel(injectGenerate3DModelin Angular,createGenerate3DModelin Svelte and Remix) streams the job to the UI. -
#2194
0a84ac2- Add experimental motion generation.generateMotion()makes skeletal animation files (FBX first) from a text prompt.getMotionJobStatus()polls a job from any request, andcancelMotionJob()asks the provider to stop it. Aborting a stream stops local observation only.falMotion()runs fal Hunyuan Motion (fal-ai/hunyuan-motion,fal-ai/hunyuan-motion/fast). -
#2184
4288b7a- A server tool can now send result metadata: app data that the UI and middleware see and the model never sees. Callcontext?.setResultMetadata?.(value)in the tool. AddresultMetadataSchemato the tool definition to type and check the value. The client reads it as a typedpart.resultMetadataon the tool-call part, also after a reload with persistence.onAfterToolCallgetsinfo.metadata. AreplaceResultorskipdecision can setmetadata.toolCacheMiddlewarekeeps the metadata on a cache hit.@tanstack/ai-mcpcopies the_metaof an MCP tool result into the result metadata. Atanstackkey is dropped.@tanstack/ai-persistencekeeps the stored app metadata when a client copy replaces a stored tool message. The'messages.metadata'conformance check now also tests a tool message with nested app metadata.- The server owns the result metadata.
chatParamsFromRequestkeeps only thetanstackkey on the tool rows of a request. - Client tools and WebMCP tools throw when they call
setResultMetadata. @tanstack/ai-effectaccepts tool definitions that haveresultMetadataSchema.@tanstack/ai-event-clientaddsmetadatato the tool result event. The devtools show it as "Result metadata" on each tool result.