MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / getRuntimeToolProgressPartial

Function getRuntimeToolProgressPartial

desktop/runtime/runtime-registry.ts:123–127  ·  view source on GitHub ↗
(event: RuntimeSessionEvent)

Source from the content-addressed store, hash-verified

121type RuntimeSessionEvent = Parameters<Parameters<PiRuntime['session']['subscribe']>[0]>[0]
122
123function getRuntimeToolProgressPartial(event: RuntimeSessionEvent) {
124 if (event.type === 'tool_execution_update') return event.partialResult
125 if (event.type === 'tool_execution_end') return event.result
126 return undefined
127}
128
129function handleRuntimeMessageEnd(
130 runtime: PiRuntime,

Callers 1

handleRuntimeToolEventFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected