X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/a606686934b4028c29dca8e9dae6b2e188cee9c5..4c199e7d93b6a4529ed5956807911b5f6c5489a7:/prompt_test.go diff --git a/prompt_test.go b/prompt_test.go index 4b0ee95..ba02b23 100644 --- a/prompt_test.go +++ b/prompt_test.go @@ -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) + 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)