Skip to content

plugin tools called with invalid enum params return enough information to self-heal #33149

Description

@khimaros

Description

@rekram1-node #27770 fixed most of the issues with plugin tools, but it left one remaining issue: tools callied with an invalid enum param does not provide any information to the LLM.

Plugins

No response

OpenCode version

head

Steps to reproduce

  1. create a plugin with a tool schema containing an enum
  2. prompt the LLM so that it uses the tool with an invalid enum param

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions