distilabel icon indicating copy to clipboard operation
distilabel copied to clipboard

[FEATURE] Update `generate` return type to allow also function calls

Open gabrielmbmb opened this issue 7 months ago • 1 comments

Is your feature request related to a problem? Please describe. Currently, LLM.generate return type is constrained to either str (assistant message) or None (assistant failed generating or something else happened).

Describe the solution you'd like Update the LLM.generate return type to also allow returning function call objects.

gabrielmbmb avatar Jul 15 '24 11:07 gabrielmbmb