u
This commit is contained in:
@@ -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`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user