firebase / genkit

An open source framework for building AI-powered apps with familiar code-centric patterns. Genkit makes it easy to develop, integrate, and test AI features with observability and evaluations. Genkit works with various models and platforms.
Apache License 2.0
729 stars 107 forks source link

[JS] Tools should be executable #1089

Open maxl0rd opened 2 weeks ago

maxl0rd commented 2 weeks ago

Tools should be executable.

I want to:

const peepTool = ai.defineTool(...);
// and then somewhere later
await peepTool();

But I get the dreaded

Error: getRegistryInstance() called before runWithRegistry()

Runtime (please complete the following information):

** Node version

On Getkit next branch.

maxl0rd commented 1 week ago

Should be fixed by https://github.com/firebase/genkit/pull/1091