transformers
3e4d584a - Support `typing.Literal` as type of tool parameters or return value (#39633)

Commit
149 days ago
Support `typing.Literal` as type of tool parameters or return value (#39633) * support `typing.Literal` as type of tool parameters * validate the `args` of `typing.Literal` roughly * add test to get json schema for `typing.Literal` type hint * fix: add `"type"` attribute to the parsed result of `typing.Literal` * test: add argument `booleanish` to test multi-type literal * style: auto fixup
Author
Parents
Loading