Documentation
¶
Overview ¶
Package chatstream provides helpers for working with streamed chat responses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ToolCallAccumulator ¶
type ToolCallAccumulator struct {
// contains filtered or unexported fields
}
ToolCallAccumulator tracks the last known metadata for a streamed tool call. It fills in missing id/type/function-name fields across incremental deltas so callers always observe complete tool-call identifiers.
func (*ToolCallAccumulator) Merge ¶
func (a *ToolCallAccumulator) Merge( choiceIndex int, callIndex int, toolID string, toolType string, functionName string, ) (finalID, finalType, finalName string)
Merge records any provided metadata for a tool call and returns the accumulated values for that (choice, call) pair.
Click to show internal directories.
Click to hide internal directories.