Function
callTool
(_name: string, input: unknown)
Source from the content-addressed store, hash-verified
| 490 | releaseFirst = resolve; |
| 491 | }); |
| 492 | const callTool = async (_name: string, input: unknown) => { |
| 493 | const id = (input as { id: string }).id; |
| 494 | started.push(id); |
| 495 | if (id === 'first') { |
| 496 | firstStarted(); |
| 497 | await firstCanFinish; |
| 498 | } |
| 499 | return id; |
| 500 | }; |
| 501 | const run = (id: string) => |
| 502 | execute(`return await tools.hold({ id: '${id}' });`, { |
| 503 | tools: [{ name: 'hold' }], |
Callers
nothing calls this directly
Tested by
no test coverage detected