Skip to content

Commit fc578af

Browse files
committed
Release v0.5.0
1 parent 8849edc commit fc578af

4 files changed

Lines changed: 107 additions & 102 deletions

File tree

evals/promptfoo/provider.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ def _build_suffix_terse(
8080
lines.append("Choose pass after completing the work. Most blocks end with pass.")
8181

8282
if "return" in allowed_kinds:
83-
lines.append("return needs return_expression (a Python expression evaluated against step locals/globals, e.g. \"result\", \"'hello'\", \"len(items)\").")
83+
lines.append(
84+
'return needs return_expression (a Python expression evaluated against step locals/globals, e.g. "result", "\'hello\'", "len(items)").'
85+
)
8486

8587
if "raise" in allowed_kinds:
8688
raise_line = "raise needs raise_message."

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "nighthawk-python"
3-
version = "0.4.0"
3+
version = "0.5.0"
44
description = "An experimental Python library that embeds Natural blocks inside Python functions and executes them using an LLM."
55
readme = "README.md"
66
requires-python = ">=3.13"

src/nighthawk/runtime/step_contract.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ def build_step_system_prompt_suffix_fragment(
202202
lines.append("Choose pass after completing the work. Most blocks end with pass.")
203203

204204
if "return" in allowed_kinds:
205-
lines.append("return needs return_expression (a Python expression evaluated against step locals/globals, e.g. \"result\", \"'hello'\", \"len(items)\").")
205+
lines.append(
206+
'return needs return_expression (a Python expression evaluated against step locals/globals, e.g. "result", "\'hello\'", "len(items)").'
207+
)
206208

207209
if "raise" in allowed_kinds:
208210
raise_line = "raise needs raise_message."

0 commit comments

Comments
 (0)