Skip to content

Version Packages#1362

Merged
lgrammel merged 1 commit intomainfrom
changeset-release/main
Apr 16, 2024
Merged

Version Packages#1362
lgrammel merged 1 commit intomainfrom
changeset-release/main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Apr 16, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@ai-sdk/anthropic@0.0.1

Patch Changes

  • 7b8791d: Rename baseUrl to baseURL. Automatically remove trailing slashes.
  • Updated dependencies [7b8791d]
    • @ai-sdk/provider-utils@0.0.1

ai@3.0.23

Patch Changes

  • 66b5892: Add streamMode parameter to useChat and useCompletion.
  • Updated dependencies [7b8791d]
    • @ai-sdk/provider-utils@0.0.1

@ai-sdk/google@0.0.1

Patch Changes

  • 7b8791d: Rename baseUrl to baseURL. Automatically remove trailing slashes.
  • Updated dependencies [7b8791d]
    • @ai-sdk/provider-utils@0.0.1

@ai-sdk/mistral@0.0.1

Patch Changes

  • 7b8791d: Rename baseUrl to baseURL. Automatically remove trailing slashes.
  • Updated dependencies [7b8791d]
    • @ai-sdk/provider-utils@0.0.1

@ai-sdk/openai@0.0.1

Patch Changes

  • 7b8791d: Support streams with 'chat.completion' objects.
  • 7b8791d: Rename baseUrl to baseURL. Automatically remove trailing slashes.
  • Updated dependencies [7b8791d]
    • @ai-sdk/provider-utils@0.0.1

@ai-sdk/provider-utils@0.0.1

Patch Changes

  • 7b8791d: Rename baseUrl to baseURL. Automatically remove trailing slashes.

@github-actions github-actions Bot force-pushed the changeset-release/main branch from 02d12a2 to c213cc7 Compare April 16, 2024 14:29
@github-actions github-actions Bot force-pushed the changeset-release/main branch from c213cc7 to 7029278 Compare April 16, 2024 14:46
@lgrammel lgrammel merged commit fcd09bf into main Apr 16, 2024
@lgrammel lgrammel deleted the changeset-release/main branch April 16, 2024 15:00
gr2m added a commit that referenced this pull request Mar 23, 2026
## Summary

Syncs DurableAgent code with changes from
[vercel/workflow](https://github.com/vercel/workflow/tree/main/packages/ai/src/agent)
since PR #12165 was opened (Jan 30, 2026). Key workflow PRs
incorporated:

- [#1362](vercel/workflow#1362) — AI SDK v6
migration, compat tests
- [#1385](vercel/workflow#1385) — Various
compatibility fixes
- [#1389](vercel/workflow#1389) — Fix
prepareStep system message lost when messages also returned
- [#1329](vercel/workflow#1329) — Client-side
tools support

## Changes

- **Telemetry**: Add `recordSpan` wrapper around `model.doStream()` with
OTel span attributes (provider, model, generation settings). New
`telemetry.ts` module with lazy OTel API loading.
- **`normalizeFinishReason`**: Handle both v5 string (`'stop'`) and v6
object (`{ unified: 'stop', raw: 'stop' }`) finish reason formats
- **prepareStep ordering fix**: Apply `messages` override before
`system` so the system message isn't lost when messages replaces the
prompt
- **Generic `DurableAgentOptions<TTools>`**: Tools and toolChoice
properly typed through the generic parameter
- **Constructor `prepareStep`**: New field on `DurableAgentOptions` for
default step preparation across all `stream()` calls
- **`TelemetrySettings`**: Add `recordInputs`/`recordOutputs` options
- **Type helpers**: Export `InferDurableAgentTools` and
`InferDurableAgentUIMessage`
- **`sendStart` docs**: Explain when to set `false` (custom pre-stream
UIMessageChunks)
- **Telemetry threading**: Pass telemetry settings through to
`executeTool` calls

## Test plan

- [x] `pnpm type-check` — zero production code errors
- [x] `pnpm check` — lint passes
- [x] `pnpm build` in packages/durable-agent — builds
- [x] `pnpm test:node` in packages/durable-agent — 60 passed, 22
expected fail (same as before)

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
gr2m added a commit that referenced this pull request Mar 24, 2026
## Summary

Syncs DurableAgent code with changes from
[vercel/workflow](https://github.com/vercel/workflow/tree/main/packages/ai/src/agent)
since PR #12165 was opened (Jan 30, 2026). Key workflow PRs
incorporated:

- [#1362](vercel/workflow#1362) — AI SDK v6
migration, compat tests
- [#1385](vercel/workflow#1385) — Various
compatibility fixes
- [#1389](vercel/workflow#1389) — Fix
prepareStep system message lost when messages also returned
- [#1329](vercel/workflow#1329) — Client-side
tools support

## Changes

- **Telemetry**: Add `recordSpan` wrapper around `model.doStream()` with
OTel span attributes (provider, model, generation settings). New
`telemetry.ts` module with lazy OTel API loading.
- **`normalizeFinishReason`**: Handle both v5 string (`'stop'`) and v6
object (`{ unified: 'stop', raw: 'stop' }`) finish reason formats
- **prepareStep ordering fix**: Apply `messages` override before
`system` so the system message isn't lost when messages replaces the
prompt
- **Generic `DurableAgentOptions<TTools>`**: Tools and toolChoice
properly typed through the generic parameter
- **Constructor `prepareStep`**: New field on `DurableAgentOptions` for
default step preparation across all `stream()` calls
- **`TelemetrySettings`**: Add `recordInputs`/`recordOutputs` options
- **Type helpers**: Export `InferDurableAgentTools` and
`InferDurableAgentUIMessage`
- **`sendStart` docs**: Explain when to set `false` (custom pre-stream
UIMessageChunks)
- **Telemetry threading**: Pass telemetry settings through to
`executeTool` calls

## Test plan

- [x] `pnpm type-check` — zero production code errors
- [x] `pnpm check` — lint passes
- [x] `pnpm build` in packages/durable-agent — builds
- [x] `pnpm test:node` in packages/durable-agent — 60 passed, 22
expected fail (same as before)

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant