Skip to content

ref: Use diagnostics channels for ai sdk wrapper#1675

Merged
Luca Forstner (lforst) merged 10 commits intomainfrom
lforst/aisdk-channel-flow
Mar 31, 2026
Merged

ref: Use diagnostics channels for ai sdk wrapper#1675
Luca Forstner (lforst) merged 10 commits intomainfrom
lforst/aisdk-channel-flow

Conversation

@lforst
Copy link
Copy Markdown
Member

@lforst Luca Forstner (lforst) commented Mar 26, 2026

Moves over the AI SDK wrapper to fully use diagnostics channels.

Additional stuff:

  • Had to expand the plugin functionality a bit to support output object schemas. Also added e2e test coverage for that.

@lforst Luca Forstner (lforst) marked this pull request as ready for review March 31, 2026 12:17
return undefined;
}

function extractTokenMetrics(result: any): Record<string, number> {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this (and some other test methods) are duplicated from ai-sdk-plugin. I would prefer if we share them as common utils so things don't drift.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am gonna do this in a follow-up so that this PR doesn't become too unwieldy!

@lforst Luca Forstner (lforst) merged commit e0a7991 into main Mar 31, 2026
47 checks passed
@lforst Luca Forstner (lforst) deleted the lforst/aisdk-channel-flow branch March 31, 2026 15:19
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.

2 participants