Skip to content

Instantly share code, notes, and snippets.

@pokutuna
Created September 23, 2025 07:52
Show Gist options
  • Select an option

  • Save pokutuna/8fc497e03a2e81259cd95d75cba50927 to your computer and use it in GitHub Desktop.

Select an option

Save pokutuna/8fc497e03a2e81259cd95d75cba50927 to your computer and use it in GitHub Desktop.
description: "Simple repro"
prompts: "{{ prompt }}"
providers:
- file://script.py
tests:
- vars:
prompt: hello!
options:
transform: output.prompt
assert:
- type: contains
value: "{{ prompt }}"
- vars:
prompt: hello!
options:
transform: output
assert:
- type: javascript
value: output.stats.length === 6
async def call_api(prompt, options, context):
return {"output": { "prompt": f"__{prompt}__", "stats": {"length": len(prompt)} }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment