style(stream): reorder stream state fields for fieldalignment

This commit is contained in:
2026-09-29 12:31:07 +01:00
parent c25c6e38e1
commit e12cec8bf9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -695,9 +695,9 @@ type anthropicStreamState struct {
// block right after a text block is content-block index 1, but it is
// still the first — index 0 — tool call).
toolOrdinals map[int]int
content contentChunker
id string
model string
content contentChunker
u usage
created int64
nextToolOrdinal int
+1 -1
View File
@@ -655,13 +655,13 @@ func (m *geminiUsageMetadata) safeCompletion() int64 {
type geminiStreamState struct {
id string
model string
content contentChunker
u usage
created int64
// nextToolOrdinal is the per-stream contiguous tool-call counter lesson
// (a) requires.
nextToolOrdinal int
startedRole bool
content contentChunker
// sawFunctionCall latches true the first time any chunk in this stream
// carries a functionCall part, and stays true for the rest of the
// stream. Gemini's finishReason is "STOP" whether the turn ended in