track finish reason

This commit is contained in:
Dax Raad
2025-10-24 12:23:24 -04:00
parent fb40dc6b20
commit 736a85d427
3 changed files with 16 additions and 5 deletions

View File

@@ -162,6 +162,7 @@ export namespace MessageV2 {
export const StepFinishPart = PartBase.extend({
type: z.literal("step-finish"),
reason: z.string(),
snapshot: z.string().optional(),
cost: z.number(),
tokens: z.object({