Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Union of literals #479

Closed
p-christ opened this issue Mar 12, 2024 · 1 comment
Closed

Union of literals #479

p-christ opened this issue Mar 12, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@p-christ
Copy link

Is this the only way to specify that something that can be 3 different literals?

union([literal('system'), literal('user'), literal('assistant')])

i'd quite like to do it like this instead, is it possible?

literal('system', 'user', 'assistant')
@xcfox
Copy link
Contributor

xcfox commented Mar 12, 2024

You might be looking for picklist:

picklist(['system', 'user', 'assistant'])

@fabian-hiller fabian-hiller self-assigned this Mar 12, 2024
@fabian-hiller fabian-hiller added the question Further information is requested label Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants