MCPcopy Index your code
hub / github.com/CommandCodeAI/BaseAI / runSummaryPipe

Function runSummaryPipe

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

Source from the content-addressed store, hash-verified

2import getPipeSummary from '../pipes/summary';
3
4const runSummaryPipe = async ({prompt}: {prompt: string}) => {
5 const pipe = new Pipe(getPipeSummary());
6 const result = await pipe.run({
7 messages: [{role: 'user', content: `${prompt} — please max one line`}],
8 });
9
10 return result.completion;
11};
12
13const toolPipeCall = () => ({
14 run: runSummaryPipe,

Callers

nothing calls this directly

Calls 2

runMethod · 0.95
getPipeSummaryFunction · 0.85

Tested by

no test coverage detected