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.tool-use.yaml 1.3 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
50
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: 'Function calling and tool use with Mistral models'
  3. providers:
  4. - id: mistral:mistral-large-latest
  5. config:
  6. temperature: 0.1
  7. tools:
  8. - type: function
  9. function:
  10. name: calculate
  11. description: Perform basic mathematical calculations
  12. parameters:
  13. type: object
  14. properties:
  15. operation:
  16. type: string
  17. enum: ['add', 'subtract', 'multiply', 'divide']
  18. description: The mathematical operation to perform
  19. a:
  20. type: number
  21. description: First number
  22. b:
  23. type: number
  24. description: Second number
  25. required: ['operation', 'a', 'b']
  26. prompts:
  27. - '{{question}}'
  28. tests:
  29. - vars:
  30. question: 'What is 15 multiplied by 8?'
  31. assert:
  32. - type: contains
  33. value: 'calculate'
  34. - type: contains
  35. value: 'multiply'
  36. - type: cost
  37. threshold: 0.05
  38. - vars:
  39. question: 'Calculate 100 divided by 4'
  40. assert:
  41. - type: contains
  42. value: 'calculate'
  43. - type: contains
  44. value: 'divide'
  45. - type: cost
  46. threshold: 0.05
Tip!

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

Comments

Loading...