(state: State, tool: string, input: Record<string, unknown>)
| 438 | } |
| 439 | |
| 440 | function make(state: State, tool: string, input: Record<string, unknown>): Ref { |
| 441 | return { |
| 442 | msg: open(state), |
| 443 | part: take(state, "part", "part"), |
| 444 | call: take(state, "call", "call"), |
| 445 | tool, |
| 446 | input, |
| 447 | start: Date.now(), |
| 448 | } |
| 449 | } |
| 450 | |
| 451 | function startTool(state: State, ref: Ref, metadata: Record<string, unknown> = {}): void { |
| 452 | feed(state, { |
no test coverage detected