MCPcopy Index your code
hub / github.com/Opencode-DCP/opencode-dynamic-context-pruning / createTextCompleteHandler

Function createTextCompleteHandler

lib/hooks.ts:284–291  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

282}
283
284export function createTextCompleteHandler() {
285 return async (
286 _input: { sessionID: string; messageID: string; partID: string },
287 output: { text: string },
288 ) => {
289 output.text = stripHallucinationsFromString(output.text)
290 }
291}
292
293export function createEventHandler(state: SessionState, logger: Logger) {
294 return async (input: { event: any }) => {

Callers 3

index.tsFile · 0.90

Calls 1

Tested by

no test coverage detected