transformers
Support `typing.Literal` as type of tool parameters or return value
#39633
Merged

Support `typing.Literal` as type of tool parameters or return value #39633

grf53
grf53 support `typing.Literal` as type of tool parameters
12f3ae1f
grf53 validate the `args` of `typing.Literal` roughly
d9096d2f
grf53 add test to get json schema for `typing.Literal` type hint
a9dfb6cb
grf53 grf53 force pushed from 62d0aab3 to a9dfb6cb 152 days ago
Rocketknight1
grf53 fix: add `"type"` attribute to the parsed result of `typing.Literal`
092631a7
grf53 test: add argument `booleanish` to test multi-type literal
87051a5f
grf53 grf53 force pushed from 3e82debe to 87051a5f 151 days ago
grf53 style: auto fixup
c9087fe4
grf53
Rocketknight1
Rocketknight1 approved these changes on 2025-07-25
Rocketknight1 Rocketknight1 enabled auto-merge (squash) 150 days ago
Rocketknight1 Rocketknight1 merged 3e4d584a into main 150 days ago
HuggingFaceDocBuilderDev

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone