Skip to content

fix: Record tools in metadata for AI SDK and Google gen ai#1570

Merged
Luca Forstner (lforst) merged 4 commits intomainfrom
lforst/record-ai-sdk-tools
Mar 17, 2026
Merged

fix: Record tools in metadata for AI SDK and Google gen ai#1570
Luca Forstner (lforst) merged 4 commits intomainfrom
lforst/record-ai-sdk-tools

Conversation

@lforst
Copy link
Member

Record tools for AI SDK in metadata for ai sdk and google gen ai

Ref: https://braintrustdata.slack.com/archives/C083GCUTVDZ/p1773612247369699

"~standard": {
"vendor": "zod",
"version": 1,
},

Choose a reason for hiding this comment

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

can we avoid having these zod details leak? That feels like a regression from previous behaviour.

export function serializeAISDKToolsForLogging(
tools: AISDKTools | undefined,
): AISDKTools | undefined {
if (!tools || typeof tools !== "object") {

Choose a reason for hiding this comment

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

we can prob remove this in favour of serializeAISDKToolsForLogging from tool-serialization.

…tools

# Conflicts:
#	e2e/scenarios/wrap-ai-sdk-generation-traces/scenario.test.ts
@lforst Luca Forstner (lforst) merged commit 704597f into main Mar 17, 2026
48 checks passed
@lforst Luca Forstner (lforst) deleted the lforst/record-ai-sdk-tools branch March 17, 2026 14:08
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