Skip to content

Commit 95ef893

Browse files
committed
fix(ai): add StreamChunk casts for TOOL_CALL_START/ARGS in continuation re-executions
The merge from main brought in #372 which emits these events but used string literals instead of the AGUIEvent enum, breaking the build.
1 parent c6bc347 commit 95ef893

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/typescript/ai/src/activities/chat

packages/typescript/ai/src/activities/chat/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,7 @@ class TextEngine<
11401140
model: finishEvent.model,
11411141
toolCallId: result.toolCallId,
11421142
toolName: result.toolName,
1143-
})
1143+
} as StreamChunk)
11441144

11451145
const args = argsMap.get(result.toolCallId) ?? '{}'
11461146
chunks.push({
@@ -1150,7 +1150,7 @@ class TextEngine<
11501150
toolCallId: result.toolCallId,
11511151
delta: args,
11521152
args,
1153-
})
1153+
} as StreamChunk)
11541154
}
11551155

11561156
chunks.push({

0 commit comments

Comments
 (0)