Skip to content

Commit 7d022c1

Browse files
committed
Merge branch 'main' into logprops
2 parents a81afbe + 33d666e commit 7d022c1

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

examples/expectations/email.pdl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ defs:
1212
Does the following email end with Kind regards. Answer with a JSON object and a result field with value True or False only.
1313
Email: ${ response }
1414
parser: json
15-
- if: ${ result.result }
16-
def: eval
17-
then: 0
18-
else: -10
19-
- if: ${ eval < -0.3 }
15+
- if: ${ not(result.result) }
2016
then:
2117
model: ollama_chat/mistral-small:latest
2218
def: instruction

pdl-live-react/src-tauri/Cargo.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/pdl/pdl_interpreter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2427,9 +2427,10 @@ def process_import(
24272427
prog, new_loc = parse_str(prog_str, file_name=str(file))
24282428
cache = state.imported.get(prog_str)
24292429
if cache is None:
2430+
import_scope = empty_scope | {"stdlib": scope["stdlib"]}
24302431
_, _, new_scope, trace = process_block(
24312432
state.with_yield_background(False).with_yield_result(False),
2432-
empty_scope,
2433+
import_scope,
24332434
prog.root,
24342435
new_loc,
24352436
)

0 commit comments

Comments
 (0)