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-tools.yaml 1.5 KB

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: Function calling with Llama 4 for mathematical problem solving
  3. prompts:
  4. - file://tool_prompts.txt
  5. providers:
  6. - id: cerebras:llama-4-scout-17b-16e-instruct
  7. config:
  8. temperature: 0.7
  9. max_completion_tokens: 1024
  10. tools:
  11. - type: 'function'
  12. function:
  13. name: 'calculate'
  14. description: 'A calculator that can perform basic arithmetic operations'
  15. parameters:
  16. type: 'object'
  17. properties:
  18. expression:
  19. type: 'string'
  20. description: 'The mathematical expression to evaluate'
  21. required: ['expression']
  22. strict: true
  23. tests:
  24. - vars:
  25. problem: '15 × 7'
  26. explanation: 'the product of fifteen and seven'
  27. assert:
  28. - type: contains
  29. value: '105'
  30. - type: contains-any
  31. value: ['multiply', 'multiplication', 'multiplying', 'product']
  32. - vars:
  33. problem: '(42 × 3) ÷ 6'
  34. explanation: 'forty-two times three, divided by six'
  35. assert:
  36. - type: contains
  37. value: '21'
  38. - type: contains-any
  39. value: ['order of operations', 'PEMDAS', 'parentheses', 'brackets']
  40. - vars:
  41. problem: '√(144) + 25²'
  42. explanation: 'the square root of one hundred forty-four plus twenty-five squared'
  43. assert:
  44. - type: contains
  45. value: '637'
  46. - type: contains-any
  47. value: ['square root', 'exponent', 'power', 'squared']
  48. outputs:
  49. - type: text
Tip!

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

Comments

Loading...