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.codeexecution.yaml 547 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
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: Code execution with Google Gemini models
  3. prompts:
  4. - '{{query}}'
  5. providers:
  6. - id: google:gemini-2.5-flash-preview-05-20
  7. config:
  8. temperature: 0.2
  9. tools:
  10. - codeExecution: {}
  11. tests:
  12. - vars:
  13. query: |
  14. "Draw an ASCII Sierpiński triangle of depth 4, then report how many * characters appear in the drawing."
  15. assert:
  16. - type: contains
  17. value: 81 # A Sierpiński triangle of depth 4 has 3^4 = 81 asterisks
Tip!

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

Comments

Loading...