add enum
type for LLM output types
#201
Labels
enhancement
New feature or request
good first engineering issue
Engineering-focused issue for newcomers
Users want to be able to add enum type outputs for operations. For example, a multi class classifer.
The interface can look something like
We'd have to figure out how to convert it to openapi-compatible schemas (relevant info might be here), and include this logic in the
convert_val
function here so the LLM reads the enum correctly. Theconvert_val
function is used when creating the LLM call for an operation (here).The PR should also add a test for a map operation with an output schema with an enum type.
We'd also have to modify the front-end to support enum types, but we can do that in a separate issue and PR.
The text was updated successfully, but these errors were encountered: