X-Git-Url: http://git.giacomolli.uk/onechat/blobdiff_plain/e1e48ba388c28105fff3b70c8ca02304f5d57f53..53c6c8a5a17e2dfc8bd3ff02ab99d29d709dda2f:/prompt_test.go?ds=sidebyside diff --git a/prompt_test.go b/prompt_test.go index 6adb0ba..043cc99 100644 --- a/prompt_test.go +++ b/prompt_test.go @@ -77,7 +77,7 @@ func TestPromptWithoutInstructionsHasNoClause(t *testing.T) { func TestAgentToolsAreStrictAndStable(t *testing.T) { tools := promptTools() - require.Equal(t, []string{"zoom", "date", "shell", "read", "write", "edit", "spawn", "tell"}, promptToolNames(tools)) + require.Equal(t, []string{"zoom", "date", "shell", "read", "write", "edit", "spawn", "tell", "whatsapp_find", "whatsapp_send", "schedule_set", "schedule_list", "schedule_remove"}, promptToolNames(tools)) require.Equal(t, []string{"zoom", "date", "shell", "read", "write", "edit"}, promptToolNames(promptSubagentTools())) for _, tool := range tools { @@ -85,7 +85,7 @@ func TestAgentToolsAreStrictAndStable(t *testing.T) { properties := schema["properties"].(map[string]any) require.True(t, tool.Strict, tool.Name) require.Equal(t, false, schema["additionalProperties"], tool.Name) - require.Equal(t, slices.Sorted(maps.Keys(properties)), schema["required"], tool.Name) + require.ElementsMatch(t, slices.Collect(maps.Keys(properties)), schema["required"], tool.Name) } first, err := json.Marshal(tools)