Skip to content

Conversation

lionpeloux
Copy link
Contributor

@lionpeloux lionpeloux commented Sep 22, 2025

From #2929

We ensure that auto-generated tool ouput name are properly sanitazed so they conform to [a-z0-9-_].
All char not in this pattern will simply be ignored/skipped in the final name.

The error was first remarked when using generic classes as output_type, where brakets in the tool name would be rejected by the provider API.

@lionpeloux lionpeloux changed the title add sanitization to auto-generated output tool name Add sanitization to auto-generated output tool name Sep 22, 2025
@lionpeloux lionpeloux marked this pull request as ready for review September 22, 2025 10:40
@DouweM
Copy link
Collaborator

DouweM commented Sep 26, 2025

@lionpeloux Thanks Lionel! Can you please add a test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants