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

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

Comments

Loading...