Skip to content

Add id property to WorkflowAgent#14458

Merged
gr2m merged 3 commits intomainfrom
workflow-agent-add-id
Apr 15, 2026
Merged

Add id property to WorkflowAgent#14458
gr2m merged 3 commits intomainfrom
workflow-agent-add-id

Conversation

@gr2m
Copy link
Copy Markdown
Contributor

@gr2m gr2m commented Apr 14, 2026

Background

ToolLoopAgent has an id constructor parameter and a public id getter used for telemetry identification. WorkflowAgent lacks this entirely, creating an API inconsistency between the two agent types.

Summary

  • Added optional id parameter to WorkflowAgentOptions
  • Exposed id as a read-only public property on the WorkflowAgent class
  • Added unit tests for the new property
  • Updated reference documentation

Checklist

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

Related Issues

Closes #14453

@tigent tigent Bot added ai/workflow related to WorkflowAgent or Vercel Workflow DevKit in general (useworkflow.dev) documentation Improvements or additions to documentation feature New feature or request labels Apr 14, 2026
gr2m and others added 2 commits April 14, 2026 14:19
Closes #14453

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@gr2m gr2m force-pushed the workflow-agent-add-id branch from 9642412 to aed10ee Compare April 14, 2026 21:19
@gr2m gr2m marked this pull request as ready for review April 14, 2026 21:25
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@gr2m gr2m merged commit bf6c17b into main Apr 15, 2026
19 checks passed
@gr2m gr2m deleted the workflow-agent-add-id branch April 15, 2026 07:09
@vercel-ai-sdk
Copy link
Copy Markdown
Contributor

vercel-ai-sdk Bot commented Apr 15, 2026

🚀 Published in:

Package Version
@ai-sdk/workflow 1.0.0-beta.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/workflow related to WorkflowAgent or Vercel Workflow DevKit in general (useworkflow.dev) documentation Improvements or additions to documentation feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add id property to WorkflowAgent

2 participants