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

Function fromEvents

packages/llm/src/schema/events.ts:605–605  ·  view source on GitHub ↗
(events: ReadonlyArray<LLMEvent>)

Source from the content-addressed store, hash-verified

603
604 /** Convenience reducer for callers that already have a collected event list. */
605 export const fromEvents = (events: ReadonlyArray<LLMEvent>) => complete(events.reduce(reduce, empty()))
606
607 /** Concatenate assistant text from a response or collected event list. */
608 export const text = (response: Output) => responseText(response.events)

Callers

nothing calls this directly

Calls 2

completeFunction · 0.70
emptyFunction · 0.50

Tested by

no test coverage detected