Skip to content

Tool annotation name validation #3832

Open
@MarkRx

Description

@MarkRx

It seems there isn't validation around tool names. Certain invalid names can cause LLMs to fail.

Expected Behavior
Some type of @Tool annotation value validation is done to preemptively catch problems

Current Behavior
An invalid tool name (such as having a space in the name) is permitted

Context

An invalid tool name (such as having a space in the name) causes the LLM to fail (GPT 4.1-mini in this case).

Expected a string that matches the pattern '^[a-zA-Z0-9_\.-]+$'."

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions