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

feat: Add extended CEL Libraries #48

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

ekawinataa
Copy link

@ekawinataa ekawinataa commented Jul 31, 2024

Previous implementation only supports basic CEL logical operation, but there might be use cases where utilities function such as :

  • String manipulation
  • Math operations
  • Binding

reference: https://github.com/google/cel-java/blob/main/extensions/src/main/java/dev/cel/extensions/README.md

*/
public static CelRuntime initializeCelRuntime() {
return CelRuntimeFactory.standardCelRuntimeBuilder()
.addLibraries(CelExtensions.strings(), CelExtensions.math(CelOptions.DEFAULT))
Copy link
Author

Choose a reason for hiding this comment

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

binding only applied on Compiler

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