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

Function pipeWithTools

examples/nextjs/baseai/pipes/pipe-with-tool.ts:5–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import toolGetWeather from '../tools/weather';
4
5const pipeWithTools = (): PipeI => ({
6 apiKey: process.env.LANGBASE_API_KEY!,
7 name: 'pipe-with-tool',
8 description: 'An AI agent pipe that can call tools',
9 status: 'public',
10 model: 'openai:gpt-4o-mini',
11 stream: false,
12 json: false,
13 store: true,
14 moderate: true,
15 top_p: 1,
16 max_tokens: 1000,
17 temperature: 0.7,
18 presence_penalty: 1,
19 frequency_penalty: 1,
20 stop: [],
21 tool_choice: 'auto',
22 parallel_tool_calls: true,
23 messages: [{role: 'system', content: `You are a helpful AI assistant.`}],
24 variables: [],
25 memory: [],
26 tools: [toolGetWeather(), toolCalculator()],
27});
28export default pipeWithTools;

Callers 1

POSTFunction · 0.85

Calls 2

toolGetWeatherFunction · 0.50
toolCalculatorFunction · 0.50

Tested by

no test coverage detected