MCPcopy Create free account
hub / github.com/anomalyco/opencode / empty

Function empty

packages/llm/src/protocols/utils/tool-stream.ts:40–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38
39/** Create empty accumulator state for one provider stream. */
40export const empty = <K extends StreamKey>(): State<K> => ({})
41
42const withTool = <K extends StreamKey>(tools: State<K>, key: K, tool: PendingTool): State<K> => {
43 return { ...tools, [key]: tool }

Callers 2

finishAllFunction · 0.70
fromEventsFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected