Feat/update ollama for function calling (#2892)

update ollama for function calling
This commit is contained in:
Henry Heng
2024-07-27 01:29:36 +01:00
committed by GitHub
parent 1338501658
commit 3e54d53692
12 changed files with 462 additions and 417 deletions
@@ -77,7 +77,7 @@ class Retriever_Tools implements INode {
const schema = z.object({
input: z.string().describe('input to look up in retriever')
})
}) as any
const tool = new DynamicStructuredTool({ ...input, func, schema })
return tool