()
| 3 | import toolGetWeather from '../tools/weather'; |
| 4 | |
| 5 | const getPipeWithTool = (): Pipe => ({ |
| 6 | apiKey: process.env.LANGBASE_USER_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: true, |
| 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 | }); |
| 28 | export default getPipeWithTool; |
no test coverage detected