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

Feature/colang march release #414

Merged
merged 21 commits into from
Mar 25, 2024
Merged

Feature/colang march release #414

merged 21 commits into from
Mar 25, 2024

Conversation

schuellc-nvidia
Copy link
Collaborator

Many Colang 2.x features and improvements

@schuellc-nvidia schuellc-nvidia self-assigned this Mar 21, 2024
Copy link
Collaborator

@drazvan drazvan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 👍

nemoguardrails/colang/v2_x/library/avatars.co Outdated Show resolved Hide resolved
Comment on lines +148 to +152
"less_than": _less_than_operator,
"equal_less_than": _equal_or_less_than_operator,
"greater_than": _greater_than_operator,
"equal_greater_than": _equal_or_greater_than_operator,
"not_equal_to": _not_equal_to_operator,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these still needed, now that we can use these directly in expressions?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, for now its for event matching based on inequalities for numbers:
match Event(number = less_than(3))
Ideally we could extend the parsing to support:
match Event(number < 3)

@drazvan drazvan self-requested a review March 25, 2024 09:23
@drazvan drazvan merged commit ee12f50 into develop Mar 25, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants