Skip to content

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

@mbleigh

Description

@mbleigh

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtooling

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions