Skip to content

[Tooling] Tools in the SchoolAgent Sample Fail to Run #1731

@i2amsam

Description

@i2amsam

Describe the bug
Running the School Agent tools in the DevUI fails

not running within a session
Error: not running within a session
    at GenkitBeta.currentSession (/Users/samphillips/dev/genkit/genkit/samples/js-schoolAgent/node_modules/genkit/src/beta.ts:147:13)
    at <anonymous> (/Users/samphillips/dev/genkit/genkit/samples/js-schoolAgent/src/tools.ts:138:33)
    at <anonymous> (/Users/samphillips/dev/genkit/genkit/samples/js-schoolAgent/node_modules/@genkit-ai/ai/src/tool.ts:224:7)
    at <anonymous> (/Users/samphillips/dev/genkit/genkit/samples/js-schoolAgent/node_modules/@genkit-ai/core/src/action.ts:426:62)

To Reproduce
Checkout branch #1729

Run a tool in the DevUI

Expected behavior
DevUI able to run the prompts

Screenshots

Image

Run on

node -v && genkit --version
v20.11.1
1.0.0-rc.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0critical bugs that need to be worked on immediatelybugSomething isn't workingtooling

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions