Add support for defining model as a step function initializer in DurableAgent#346
Merged
TooTallNate merged 3 commits intoNov 16, 2025
Conversation
🦋 Changeset detectedLatest commit: c9da9c4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 10 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Nov 14, 2025
Remove step function identifier transform out of swc-plugin and into
useStep() runtime function
#337
Merged
Merged
Member
Author
model as a step function initializermodel as a step function initializer in DurableAgent
f21818c to
c97f02c
Compare
21d0fec to
99d30e5
Compare
91f8e57 to
fcddf9b
Compare
78b6405 to
71cf4dd
Compare
fcddf9b to
7836b5f
Compare
VaguelySerious
approved these changes
Nov 15, 2025
Member
VaguelySerious
left a comment
There was a problem hiding this comment.
This PR seems to also contain changes from a different one changing SWC stuff - approving the DurableAgent changes specifically
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Added support for defining
modelas a step function initializer in the AI workflow package.What changed?
DurableAgentclass to accept either a string model ID or a function that returns aLanguageModelV2instancedoStreamStepfunction to handle both string model IDs and function initializersHow to test?
Test both initialization methods:
Why make this change?
This enhancement provides more flexibility in how language models are initialized and used within the workflow. By supporting function initializers, users can now: