You should try Mirror. The LLM-powered programming-by-example programming language I made:
signature is_even(x: number) -> bool
example is_even(0) -> true
example is_even(1) -> false
example is_even(222) -> true
example is_even(-99) -> false
It will take your examples and "compile" to a callable function. You can read more or try it out: https://austinhenley.com/blog/mirrorlang.html