({prompt}: {prompt: string})
| 2 | import getPipeWithTool from '../pipes/pipe-with-tool'; |
| 3 | |
| 4 | const runPipeWithMaths = async ({prompt}: {prompt: string}) => { |
| 5 | const pipe = new Pipe(getPipeWithTool()); |
| 6 | const result = await pipe.run({ |
| 7 | messages: [{role: 'user', content: prompt}], |
| 8 | }); |
| 9 | |
| 10 | return result.completion; |
| 11 | }; |
| 12 | |
| 13 | const toolPipeCallMaths = () => ({ |
| 14 | run: runPipeWithMaths, |
nothing calls this directly
no test coverage detected