Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

promptfooconfig.yaml 897 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: 'Generate code with Claude in a Docker sandbox'
  3. prompts:
  4. - file://code_generation_prompt.txt
  5. providers:
  6. - anthropic:claude-sonnet-4-20250514
  7. # - openai:gpt-4.1
  8. tests:
  9. - vars:
  10. problem: 'Write a Python function to calculate the factorial of a number'
  11. function_name: 'factorial'
  12. test_input: '5'
  13. expected_output: '120'
  14. - vars:
  15. problem: 'Write a Python function to check if a string is a palindrome'
  16. function_name: 'is_palindrome'
  17. test_input: "'racecar'"
  18. expected_output: 'True'
  19. - vars:
  20. problem: 'Write a Python function to find the largest element in a list'
  21. function_name: 'find_largest'
  22. test_input: '[1, 5, 3, 9, 2]'
  23. expected_output: '9'
  24. defaultTest:
  25. assert:
  26. - type: python
  27. value: file://validate_and_run_code.py
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...