返回 CodeWhale
1 // First entry: activates fine and registers a tool.
2 export const name = 'two-entries-failing-first'
3 export const inject = ['tools']
4
5 export function apply(ctx) {
6 ctx.tools.register({
7 name: 'tef_first',
8 description: 'A tool that must not survive the second entry failing.',
9 parameters: { type: 'object', properties: {} },
10 execute: () => 'first',
11 })
12 }
13
13 lines Plain Text