MCPcopy Create free account
hub / github.com/codehamr/codehamr / dispatchDelta

Function dispatchDelta

internal/llm/llm.go:544–584  ·  view source on GitHub ↗

dispatchDelta forwards reasoning and content as events, then accumulates streamed tool-call fragments into index-keyed slots. Reasoning stays out of fullContent (must not round-trip into the assistant message) but is forwarded so the UI reflects thinking. Fragments key on the provider's `index`, not

(parent context.Context, d streamDelta, budget cloud.BudgetStatus, fullContent *strings.Builder, slots map[int]*toolSlot, order *[]int, out chan<- Event)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

readSSEFunction · 0.85

Calls 1

sendEventFunction · 0.85

Tested by

no test coverage detected