add step finish part

This commit is contained in:
Dax Raad
2025-07-10 16:21:26 -04:00
parent b00bb3c083
commit c056b0add9
4 changed files with 149 additions and 18 deletions

View File

@@ -721,6 +721,11 @@ export namespace Session {
const usage = getUsage(model.info, value.usage, value.providerMetadata)
next.cost += usage.cost
next.tokens = usage.tokens
next.parts.push({
type: "step-finish",
tokens: usage.tokens,
cost: usage.cost,
})
break
case "text-start":