julep-ai / julep

Build AI agents and workflows with a simple API. Supabase for AI agents
https://julep.ai
Apache License 2.0
883 stars 69 forks source link

Fix Evaluate Step error #518

Closed HamadaSalhab closed 1 week ago

HamadaSalhab commented 1 week ago

[!IMPORTANT] Adds preprocessing in simple_eval_dict to convert Jinja-like syntax to Python format before evaluation.

  • Behavior:
    • Adds preprocess_expression function in simple_eval_dict to convert Jinja-like syntax to Python format using re2.sub.
    • Modifies simple_eval_dict to preprocess expressions before evaluation.

This description was created by Ellipsis for d28c77c714b644330e97dc065a67f43be1039d33. It will automatically update as commits are pushed.

creatorrr commented 1 week ago

I didn't understand why this is necessary. can you explain the bug a lil more, @HamadaSalhab ?