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.nova.tool.yaml 2.9 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: 'Bedrock Nova Tool Use Eval'
  3. prompts:
  4. - 'What is the color of {{topic}}? ONLY answer using the "color_json" tool.'
  5. providers:
  6. - id: bedrock:amazon.nova-micro-v1:0
  7. config:
  8. region: 'us-east-1'
  9. inferenceConfig:
  10. temperature: 0.7
  11. max_new_tokens: 256
  12. toolConfig:
  13. toolChoice:
  14. auto: {}
  15. tools:
  16. - toolSpec:
  17. name: color_json
  18. description: 'Outputs the color of a thing'
  19. inputSchema:
  20. json:
  21. type: object
  22. properties:
  23. name:
  24. type: string
  25. description: 'The name of the thing'
  26. color:
  27. type: string
  28. description: 'The color of the thing'
  29. required:
  30. - name
  31. - color
  32. - id: bedrock:amazon.nova-lite-v1:0
  33. config:
  34. region: 'us-east-1'
  35. inferenceConfig:
  36. temperature: 0.7
  37. max_new_tokens: 256
  38. toolConfig:
  39. toolChoice:
  40. auto: {}
  41. tools:
  42. - toolSpec:
  43. name: color_json
  44. description: 'Outputs the color of a thing'
  45. inputSchema:
  46. json:
  47. type: object
  48. properties:
  49. name:
  50. type: string
  51. description: 'The name of the thing'
  52. color:
  53. type: string
  54. description: 'The color of the thing'
  55. required:
  56. - name
  57. - color
  58. - id: bedrock:amazon.nova-pro-v1:0
  59. config:
  60. region: 'us-east-1'
  61. inferenceConfig:
  62. temperature: 0.7
  63. max_new_tokens: 256
  64. toolConfig:
  65. toolChoice:
  66. auto: {}
  67. tools:
  68. - toolSpec:
  69. name: color_json
  70. description: 'Outputs the color of a thing'
  71. inputSchema:
  72. json:
  73. type: object
  74. properties:
  75. name:
  76. type: string
  77. description: 'The name of the thing'
  78. color:
  79. type: string
  80. description: 'The color of the thing'
  81. required:
  82. - name
  83. - color
  84. defaultTest:
  85. options:
  86. transform: 'JSON.parse(output).input.color'
  87. tests:
  88. - vars:
  89. topic: sky
  90. assert:
  91. - type: equals
  92. value: blue
  93. - vars:
  94. topic: ocean
  95. assert:
  96. - type: equals
  97. value: blue
  98. - vars:
  99. topic: banana
  100. assert:
  101. - type: equals
  102. value: yellow
  103. - vars:
  104. topic: grass
  105. assert:
  106. - type: equals
  107. value: green
Tip!

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

Comments

Loading...