genkit icon indicating copy to clipboard operation
genkit copied to clipboard

[Tooling] Prompt playground doesn't resolve tools for Dotprompt

Open mbleigh opened this issue 1 year ago • 3 comments

Describe the bug When using Dotprompt with tools, the prompt playground doesn't properly resolve them.

To Reproduce Steps to reproduce the behavior:

  1. Define a tool using defineTool
  2. Activate the Dotprompt plugin
  3. Write a .prompt that includes tools: nameOfTool
  4. Open Genkit UI and try to run the prompt

Expected behavior The prompt executes including tool calling.

Actual behavior
The prompt errors with:

Error: INVALID_ARGUMENT: Schema validation failed. Parse Errors:

- tools.0: must be object

mbleigh avatar May 19 '24 06:05 mbleigh

We're hashing out the tool-call rendering capabilities in the model playground (early this week), and then will integrate into the prompt runner as well. We could push a quick fix to unblock this particular error if needed.

MichaelDoyle avatar May 20 '24 14:05 MichaelDoyle

No urgency, just reporting the bug.

On Mon, May 20, 2024, 7:43 AM Michael Doyle @.***> wrote:

We're hashing out the tool-call rendering capabilities in the model playground (early this week), and then will integrate into the prompt runner as well. We could push a quick fix to unblock this particular error if needed.

— Reply to this email directly, view it on GitHub https://github.com/firebase/genkit/issues/197#issuecomment-2120605542, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAAH7VZPNOYQQTJNG3IAYDZDIDZJAVCNFSM6AAAAABH6DGJ66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRQGYYDKNJUGI . You are receiving this because you authored the thread.Message ID: @.***>

mbleigh avatar May 20 '24 14:05 mbleigh

Fix is in for the next update.

MichaelDoyle avatar May 23 '24 19:05 MichaelDoyle

Fixed!

i2amsam avatar Jun 11 '24 20:06 i2amsam