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.function-call.yaml 916 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
32
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: Function Calling with OpenAI Responses API
  3. prompts:
  4. - 'What is the weather like in {{location}}?'
  5. providers:
  6. - id: openai:responses:o1-pro
  7. config:
  8. temperature: 0.7
  9. max_output_tokens: 300
  10. tool_choice: auto
  11. tools:
  12. - type: function
  13. name: get_current_weather
  14. description: 'Get the current weather in a given location'
  15. parameters:
  16. type: object
  17. properties:
  18. location:
  19. type: string
  20. description: 'The city and state, e.g. San Francisco, CA'
  21. unit:
  22. type: string
  23. enum: ['celsius', 'fahrenheit']
  24. required: ['location', 'unit']
  25. tests:
  26. - vars:
  27. location: Boston, MA
  28. assert:
  29. - type: contains
  30. value: 'get_current_weather'
Tip!

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

Comments

Loading...