Skip to content

Grammar-constrained tool calls #1

Description

@M-ballabio1

The README lists this as the research claim, and it is not built.

Today. Small models are asked politely to produce well-formed tool calls. When the arguments come back malformed, the result is a tool error the model can retry from. That works often enough to demo and not often enough to promise.

Wanted. Tool arguments constrained by grammar at decode time, so a malformed call is not possible rather than recoverable. This is what makes the claim falsifiable: on a small local model, the tool-call error rate should go to zero, not down.

Notes. docs/reference/typing-debt.md points out that Tool.execute has a dishonest base signature and that the fix is most likely a typed per-tool argument model — which is the same artefact grammar compilation needs. The two should probably land together.

Source: README, "What is built, and what is not".

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededphase:F1Phase F1 — the research claimpublished-gapA gap the README states publicly

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions