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 2.1 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. providers:
  3. - id: anthropic:messages:claude-3-5-sonnet-20241022
  4. config:
  5. tools:
  6. - name: get_weather
  7. description: Get the current weather in a given location
  8. input_schema:
  9. type: object
  10. properties:
  11. location:
  12. type: string
  13. description: The city and state, e.g. San Francisco, CA
  14. unit:
  15. type: string
  16. enum:
  17. - celsius
  18. - fahrenheit
  19. required:
  20. - location
  21. - id: openai:chat:gpt-4o-mini
  22. config:
  23. tools:
  24. - type: function
  25. function:
  26. name: get_weather
  27. description: Get the current weather in a given location
  28. input_schema:
  29. type: object
  30. properties:
  31. location:
  32. type: string
  33. description: The city and state, e.g. San Francisco, CA
  34. unit:
  35. type: string
  36. enum:
  37. - celsius
  38. - fahrenheit
  39. required:
  40. - location
  41. - id: openai:chat:gpt-4o-mini
  42. config:
  43. tools: file://external_tools.yaml
  44. - id: groq:llama3-groq-70b-8192-tool-use-preview
  45. config:
  46. tools:
  47. - type: function
  48. function:
  49. name: get_weather
  50. description: 'Get the current weather in a given location'
  51. parameters:
  52. type: object
  53. properties:
  54. location:
  55. type: string
  56. description: 'The city and state, e.g. San Francisco, CA'
  57. unit:
  58. type: string
  59. enum:
  60. - celsius
  61. - fahrenheit
  62. required:
  63. - 'location'
  64. tool_choice: auto
  65. prompts:
  66. - Tell me about the weather in {{city}} in the default unit for the location.
  67. tests:
  68. - vars:
  69. city: Boston
  70. - vars:
  71. city: New York
  72. - vars:
  73. city: Paris
  74. - vars:
  75. city: Mars
Tip!

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

Comments

Loading...