MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / runPipeWithMaths

Function runPipeWithMaths

examples/remix/baseai/tools/pipe-call-maths.ts:4–11  ·  view source on GitHub ↗
({prompt}: {prompt: string})

Source from the content-addressed store, hash-verified

2import getPipeWithTool from '../pipes/pipe-with-tool';
3
4const 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
13const toolPipeCallMaths = () => ({
14 run: runPipeWithMaths,

Callers

nothing calls this directly

Calls 2

runMethod · 0.95
getPipeWithToolFunction · 0.50

Tested by

no test coverage detected