AI SDK 7.0.162

7.0.162
Added 3
  • Support a single telemetry operation for durable WorkflowAgent runs, including the prompt, final output, steps, and tools
  • Add an explicit OpenTelemetry bridge for durable runs that carries parent trace context and sampling across steps, reports model spans live with provider requests nested beneath them, and reconstructs the enclosing invoke_agent tree when the run completes, configured by passing the same OpenTelemetryIdGenerator instance as the tracer provider's idGenerator and sampler and as new OpenTelemetry({ durable })
  • Add typed experimental durable context hooks for telemetry integrations
Changed 2
  • Events recorded in the workflow are reported on completion or suspension with their original timestamps
  • Existing live per-model tracing is preserved when the OpenTelemetry bridge is not configured
Fixed 1
  • Restore server-defined tool metadata, dynamic status, and title when validating tool approval continuations so approval policies receive the same tool definition fields as new model calls
Removed 1
  • Remove reliance on process-global ID-generator detection

From AI SDK

Patch Changes
  • 857ca45: Restore server-defined tool metadata, dynamic status, and title when validating tool approval continuations so approval policies receive the same tool definition fields as new model calls.
  • 4d6d830: Support a single telemetry operation for durable WorkflowAgent runs, including the prompt, final output, steps, and tools. Events recorded in the workflow are reported on completion or suspension with their original timestamps. For OpenTelemetry, pass the same OpenTelemetryIdGenerator instance as the tracer provider's idGenerator and sampler and as new OpenTelemetry({ durable }). This explicit bridge carries parent trace context and sampling across steps, reports model spans live with provider requests nested beneath them, and reconstructs the enclosing invoke_agent tree when the run completes. Without the bridge, existing live per-model tracing is preserved. Add typed experimental durable context hooks for telemetry integrations; remove reliance on process-global ID-generator detection.
  • Updated dependencies [fa15312]
    • @ai-sdk/provider-utils@5.0.74
    • @ai-sdk/gateway@4.0.135
View original

Upgraded? How did it go?

Discussion