From ab591c74bc74a208984b80d2cbbeb6f863d1cff0 Mon Sep 17 00:00:00 2001 From: Vladimir Kalnitsky Date: Tue, 12 Nov 2024 23:25:15 +0400 Subject: [PATCH] Improve the counter example --- python/examples/counter.metaprompt | 3 ++- python/src/eval.py | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/examples/counter.metaprompt b/python/examples/counter.metaprompt index 8c5c9a2..9b7995f 100644 --- a/python/examples/counter.metaprompt +++ b/python/examples/counter.metaprompt @@ -1,4 +1,5 @@ -.[:if [:number] is zero or less +counter is: [:number] +[:if [:number] is zero or less :then done! :else [:use ./counter diff --git a/python/src/eval.py b/python/src/eval.py index 2fb0966..3ebd438 100644 --- a/python/src/eval.py +++ b/python/src/eval.py @@ -86,7 +86,6 @@ async def eval_ast(ast, runtime): async for chunk in eval_ast(ast["condition"], runtime): condition_chunks.append(chunk) condition = "".join(condition_chunks) - print(condition) prompt_result = "" MAX_RETRIES = 3 retries = 0