]> git.giacomolli.uk - onechat/blobdiff - prompt_test.go
Explain daemon log levels and journal filtering
[onechat] / prompt_test.go
index 4b0ee9564ed1fe590e7def229c32788045340620..ba02b23b1acc0379e664e3715b2f6c1a13b627b4 100644 (file)
@@ -134,6 +134,7 @@ func TestAgentToolsAreStrictAndStable(t *testing.T) {
        for _, tool := range tools {
                schema := tool.Parameters.(map[string]any)
                properties := schema["properties"].(map[string]any)
        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)
                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)