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
782 stars 118 forks source link

[JS] Tools should be executable #1089

Open maxl0rd opened 1 month ago

maxl0rd commented 1 month 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 month ago

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