(signal: AbortSignal)
| 21 | } |
| 22 | |
| 23 | function assertNotAborted(signal: AbortSignal): void { |
| 24 | if (signal.aborted) { |
| 25 | throw new Error('cancelled') |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | /** 组装工具执行上下文:sessionId/abortSignal 来自请求,其余能力由平台注入。 */ |
| 30 | export function buildToolExecutionContext( |
no outgoing calls
no test coverage detected