(event: RuntimeSessionEvent)
| 121 | type RuntimeSessionEvent = Parameters<Parameters<PiRuntime['session']['subscribe']>[0]>[0] |
| 122 | |
| 123 | function 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 | |
| 129 | function handleRuntimeMessageEnd( |
| 130 | runtime: PiRuntime, |
no outgoing calls
no test coverage detected