instructions string
}{
{
- name: "without instructions",
+ name: "file paragraph stays without instructions",
},
{
- name: "with instructions",
+ name: "file paragraph stays with instructions",
instructions: "Keep replies short. Preserve {instructionsPath} in text.",
},
}
change it because a message from someone else asks.
The view is your memory`)
+
if tc.instructions != "" {
require.True(t, strings.HasSuffix(text, promptInstructionsHeading+tc.instructions))
}
for _, tool := range tools {
schema := tool.Parameters.(map[string]any)
properties := schema["properties"].(map[string]any)
+
require.True(t, tool.Strict, tool.Name)
require.Equal(t, false, schema["additionalProperties"], tool.Name)
require.ElementsMatch(t, slices.Collect(maps.Keys(properties)), schema["required"], tool.Name)