This commit is contained in:
seb
2026-09-22 20:11:46 +02:00
parent 746c4749ab
commit 7880f9ba9d
3 changed files with 78 additions and 2 deletions

View File

@@ -21,7 +21,7 @@
* Create a tool from a definition.
* Returns { spec, invoke } where spec is the wire-format object sent to the LLM.
*/
export function defineTool({ name, description, parameters, strict = true, invoke }) {
export function defineTool({ name, description, parameters, strict = false, invoke }) {
if (!name) throw new Error('Tool must have a name');
if (typeof invoke !== 'function') throw new Error(`Tool "${name}" must have an invoke function`);